|
Gaudi Framework, version v23r6 |
| Home | Generated: Wed Jan 30 2013 |
Interface ID class. More...
#include <GaudiKernel/Kernel.h>
Public Member Functions | |
| InterfaceID (unsigned long id, unsigned long major, unsigned long minor=0) | |
| constructor from components | |
| InterfaceID (const char *name, unsigned long major, unsigned long minor=0) | |
| constructor from components | |
| ~InterfaceID () | |
| destructor | |
| unsigned long | id () const |
| get the interface identifier | |
| unsigned long | majorVersion () const |
| get the major version of the interface | |
| unsigned long | minorVersion () const |
| get the minor version of the interface | |
| bool | versionMatch (const InterfaceID &iid) const |
| check compatibility. | |
| bool | fullMatch (const InterfaceID &iid) const |
| check full compatibility. | |
| bool | operator== (const InterfaceID &iid) const |
| compare operator | |
Static Public Member Functions | |
| static unsigned int | hash32 (const char *key) |
| one-at-time hash function | |
Private Attributes | |
| unsigned long | m_id |
| unsigned long | m_major_ver |
| unsigned long | m_minor_ver |
Interface ID class.
It consists of several fields: interface number, major version number and minor version number. Interface number should be allocated globally. The major and minor version numbers are used for checking compatibility between interface versions.
Definition at line 56 of file IInterface.h.
|
inline |
|
inline |
|
inline |
|
inline |
check full compatibility.
Definition at line 93 of file IInterface.h.
|
inlinestatic |
one-at-time hash function
Definition at line 101 of file IInterface.h.
|
inline |
|
inline |
get the major version of the interface
Definition at line 81 of file IInterface.h.
|
inline |
get the minor version of the interface
Definition at line 83 of file IInterface.h.
|
inline |
|
inline |
check compatibility.
The major version is check and the minor one should be bigger or equal
Definition at line 87 of file IInterface.h.
|
private |
Definition at line 112 of file IInterface.h.
|
private |
Definition at line 113 of file IInterface.h.
|
private |
Definition at line 114 of file IInterface.h.