Data Structures | Defines | Enumerations | Functions

I_Version.h File Reference

A brief file description. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VersionNumber
struct  Version
class  AppVersionInfo

Defines

#define makeModuleVersion(_major_version, _minor_version, _module_type)
#define majorModuleVersion(_v)   ((((int)_v) >> 16) & 255)
#define minorModuleVersion(_v)   ((((int)_v) >> 8) & 255)
#define moduleVersionType(_v)   ((((int)_v) >> 24) & 127)

Enumerations

enum  ModuleVersion { MODULE_VERSION_MIN = 0, MODULE_VERSION_MAX = 2147483647 }
enum  ModuleHeaderType { PUBLIC_MODULE_HEADER, PRIVATE_MODULE_HEADER }

Functions

bool operator< (VersionNumber const &lhs, VersionNumber const &rhs)
static int checkModuleVersion (ModuleVersion userVersion, ModuleVersion libVersion)

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file I_Version.h.


Define Documentation

#define majorModuleVersion (   _v  )     ((((int)_v) >> 16) & 255)

Definition at line 67 of file I_Version.h.

Referenced by checkModuleVersion().

#define makeModuleVersion (   _major_version,
  _minor_version,
  _module_type 
)
Value:
((ModuleVersion)((((int)_module_type) << 24)   + \
                 (((int)_major_version) << 16) + \
                 (((int)_minor_version) << 8)))

Definition at line 62 of file I_Version.h.

Referenced by main().

#define minorModuleVersion (   _v  )     ((((int)_v) >> 8) & 255)

Definition at line 68 of file I_Version.h.

Referenced by checkModuleVersion().

#define moduleVersionType (   _v  )     ((((int)_v) >> 24) & 127)

Definition at line 69 of file I_Version.h.

Referenced by checkModuleVersion().


Enumeration Type Documentation

Enumerator:
PUBLIC_MODULE_HEADER 
PRIVATE_MODULE_HEADER 

Definition at line 59 of file I_Version.h.

Enumerator:
MODULE_VERSION_MIN 
MODULE_VERSION_MAX 

Definition at line 57 of file I_Version.h.


Function Documentation

static int checkModuleVersion ( ModuleVersion  userVersion,
ModuleVersion  libVersion 
) [inline, static]
bool operator< ( VersionNumber const &  lhs,
VersionNumber const &  rhs 
) [inline]

Definition at line 43 of file I_Version.h.

References VersionNumber::ink_major, and VersionNumber::ink_minor.