Gaudi Framework, version v25r2

Home   Generated: Wed Jun 4 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
IInterface Class Referenceabstract

Definition of the basic interface. More...

#include <GaudiKernel/IInterface.h>

Inheritance diagram for IInterface:
Inheritance graph
[legend]

Public Types

enum  Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR }
 Return status. More...
 
typedef Gaudi::InterfaceId
< IInterface, 0, 0 > 
iid
 Interface ID.
 
typedef mpl::set1< iidext_iids
 Extra interfaces.
 

Public Member Functions

virtual void * i_cast (const InterfaceID &) const =0
 main cast function
 
virtual std::vector< std::string > getInterfaceNames () const =0
 Returns a vector of strings containing the names of all the implemented interfaces.
 
virtual unsigned long addRef ()=0
 Increment the reference count of Interface instance.
 
virtual unsigned long release ()=0
 Release Interface instance.
 
virtual unsigned long refCount () const =0
 Current reference count.
 
virtual StatusCode queryInterface (const InterfaceID &ti, void **pp)=0
 Set the void** to the pointer to the requested interface of the instance.
 
virtual ~IInterface ()
 Virtual destructor.
 

Static Public Member Functions

static const InterfaceIDinterfaceID ()
 Return an instance of InterfaceID identifying the interface.
 

Detailed Description

Definition of the basic interface.

Author
Pere Mato
Markus Frank
Marco Clemencic

Definition at line 160 of file IInterface.h.

Member Typedef Documentation

typedef mpl::set1<iid> IInterface::ext_iids

Extra interfaces.

Definition at line 167 of file IInterface.h.

Interface ID.

Definition at line 164 of file IInterface.h.

Member Enumeration Documentation

Return status.

Enumerator:
SUCCESS 

Normal successful completion.

NO_INTERFACE 

Requested interface is not available.

VERSMISMATCH 

Requested interface version is incompatible.

LAST_ERROR 

Last error.

Definition at line 217 of file IInterface.h.

Constructor & Destructor Documentation

virtual IInterface::~IInterface ( )
inlinevirtual

Virtual destructor.

Definition at line 229 of file IInterface.h.

{}

Member Function Documentation

virtual unsigned long IInterface::addRef ( )
pure virtual

Increment the reference count of Interface instance.

Implemented in IFactory.

virtual std::vector<std::string> IInterface::getInterfaceNames ( ) const
pure virtual
virtual void* IInterface::i_cast ( const InterfaceID ) const
pure virtual
static const InterfaceID& IInterface::interfaceID ( )
inlinestatic

Return an instance of InterfaceID identifying the interface.

Definition at line 171 of file IInterface.h.

{
#ifndef __GCCXML__
return iid::interfaceID();
#else
// GCCXML work-around
static InterfaceID xx(0UL,0UL,0UL);
return xx;
#endif
}
virtual StatusCode IInterface::queryInterface ( const InterfaceID ti,
void **  pp 
)
pure virtual
virtual unsigned long IInterface::refCount ( ) const
pure virtual

Current reference count.

Implemented in IAlgTool.

virtual unsigned long IInterface::release ( )
pure virtual

Release Interface instance.

Implemented in IFactory.


The documentation for this class was generated from the following file:

Generated at Wed Jun 4 2014 14:49:02 for Gaudi Framework, version v25r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004