Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

InterfaceID Class Reference

Interface ID class. More...

#include <GaudiKernel/Kernel.h>

List of all members.

Public Methods

 InterfaceID ( unsigned long lid )
 constructor from a pack long. More...

 InterfaceID ( unsigned long id, unsigned long major, unsigned long minor = 0)
 constructor from components. More...

 ~InterfaceID ()
 destructor. More...

 operator unsigned long () const
 conversion to unsigned long. More...

unsigned long id () const
 get the interfac identifier. More...

unsigned long majorVersion () const
 get the major version of the interface. More...

unsigned long minorVersion () const
 get the minor version of the interface. More...

bool versionMatch ( const InterfaceID& iid ) const
 check compatibility. The major version is check and the minor one should be bigger or equal. More...

bool fullMatch ( const InterfaceID& iid ) const
 check full compatibility. More...

bool operator== (const InterfaceID& iid ) const

Private Attributes

unsigned long m_id
unsigned long m_major_ver
unsigned long m_minor_ver


Detailed Description

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.

Author(s):
Pere Mato
Date:
12/1/2001

Definition at line 20 of file IInterface.h.


Constructor & Destructor Documentation

InterfaceID::InterfaceID ( unsigned long lid ) [inline]
 

constructor from a pack long.

Definition at line 23 of file IInterface.h.

InterfaceID::InterfaceID ( unsigned long id,
unsigned long major,
unsigned long minor = 0 ) [inline]
 

constructor from components.

Definition at line 26 of file IInterface.h.

InterfaceID::~InterfaceID ( ) [inline]
 

destructor.

Definition at line 29 of file IInterface.h.


Member Function Documentation

bool InterfaceID::fullMatch ( const InterfaceID & iid ) const [inline]
 

check full compatibility.

Definition at line 43 of file IInterface.h.

Referenced by operator==().

unsigned long InterfaceID::id ( ) const [inline]
 

get the interfac identifier.

Definition at line 33 of file IInterface.h.

Referenced by fullMatch(), and versionMatch().

unsigned long InterfaceID::majorVersion ( ) const [inline]
 

get the major version of the interface.

Definition at line 35 of file IInterface.h.

Referenced by fullMatch(), and versionMatch().

unsigned long InterfaceID::minorVersion ( ) const [inline]
 

get the minor version of the interface.

Definition at line 37 of file IInterface.h.

Referenced by fullMatch(), and versionMatch().

InterfaceID::operator unsigned long ( ) const [inline]
 

conversion to unsigned long.

Definition at line 31 of file IInterface.h.

bool InterfaceID::operator== ( const InterfaceID & iid ) const [inline]
 

Definition at line 46 of file IInterface.h.

bool InterfaceID::versionMatch ( const InterfaceID & iid ) const [inline]
 

check compatibility. The major version is check and the minor one should be bigger or equal.

Definition at line 39 of file IInterface.h.


Member Data Documentation

unsigned long InterfaceID::m_id [private]
 

Definition at line 48 of file IInterface.h.

unsigned long InterfaceID::m_major_ver [private]
 

Definition at line 49 of file IInterface.h.

unsigned long InterfaceID::m_minor_ver [private]
 

Definition at line 50 of file IInterface.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:12 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000