Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
GenericAddress Class Reference

Generic Transient Address. More...

#include <GaudiKernel/GenericAddress.h>

Inheritance diagram for GenericAddress:
Inheritance graph
[legend]
Collaboration diagram for GenericAddress:
Collaboration graph
[legend]

Public Member Functions

 GenericAddress ()
 Dummy constructor.
 
 GenericAddress (const GenericAddress &copy)
 Standard Constructor.
 
 GenericAddress (long svc, const CLID &clid, const std::string &p1="", const std::string &p2="", unsigned long ip1=0, unsigned long ip2=0)
 Standard Constructor.
 
virtual ~GenericAddress ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
virtual IRegistryregistry () const
 Pointer to directory.
 
virtual void setRegistry (IRegistry *pRegistry)
 Set pointer to directory.
 
const CLIDclID () const
 Access : Retrieve class ID of the link.
 
void setClID (const CLID &clid)
 Access : Set class ID of the link.
 
long svcType () const
 Access : retrieve the storage type of the class id.
 
void setSvcType (long typ)
 Access : set the storage type of the class id.
 
virtual const std::stringpar () const
 Retrieve string parameters.
 
virtual const unsigned long * ipar () const
 Retrieve integer parameters.
 
- Public Member Functions inherited from IOpaqueAddress
virtual ~IOpaqueAddress ()
 destructor
 

Protected Attributes

unsigned long m_refCount
 Reference count.
 
long m_svcType
 Storage type.
 
CLID m_clID
 Class id.
 
std::string m_par [3]
 String parameters to be accessed.
 
unsigned long m_ipar [2]
 Integer parameters to be accessed.
 
IRegistrym_pRegistry
 Pointer to corresponding directory.
 

Detailed Description

Generic Transient Address.

The generic transient address describes the recipe to load/save a persistent object from/to its transient representation.

Author
Markus Frank
Version
1.0

Definition at line 21 of file GenericAddress.h.

Constructor & Destructor Documentation

GenericAddress::GenericAddress ( )
inline

Dummy constructor.

Definition at line 38 of file GenericAddress.h.

: m_refCount(0),
m_clID(0),
{
m_ipar[0]=m_ipar[1]=0xFFFFFFFF;
}
GenericAddress::GenericAddress ( const GenericAddress copy)
inline

Standard Constructor.

Definition at line 47 of file GenericAddress.h.

: IOpaqueAddress(copy),
m_clID(copy.m_clID),
{
m_par[0] = copy.m_par[0];
m_par[1] = copy.m_par[1];
m_ipar[0] = copy.m_ipar[0];
m_ipar[1] = copy.m_ipar[1];
}
GenericAddress::GenericAddress ( long  svc,
const CLID clid,
const std::string p1 = "",
const std::string p2 = "",
unsigned long  ip1 = 0,
unsigned long  ip2 = 0 
)
inline

Standard Constructor.

Definition at line 60 of file GenericAddress.h.

: m_refCount(0),
m_svcType(svc),
m_clID(clid),
{
m_par[0] = p1;
m_par[1] = p2;
m_ipar[0] = ip1;
m_ipar[1] = ip2;
}
virtual GenericAddress::~GenericAddress ( )
inlinevirtual

Standard Destructor.

Definition at line 78 of file GenericAddress.h.

{
}

Member Function Documentation

virtual unsigned long GenericAddress::addRef ( )
inlinevirtual

Add reference to object.

Implements IOpaqueAddress.

Definition at line 82 of file GenericAddress.h.

{
return ++m_refCount;
}
const CLID& GenericAddress::clID ( ) const
inlinevirtual

Access : Retrieve class ID of the link.

Implements IOpaqueAddress.

Definition at line 102 of file GenericAddress.h.

{
return m_clID;
}
virtual const unsigned long* GenericAddress::ipar ( ) const
inlinevirtual

Retrieve integer parameters.

Implements IOpaqueAddress.

Definition at line 122 of file GenericAddress.h.

{
return m_ipar;
}
virtual const std::string* GenericAddress::par ( ) const
inlinevirtual

Retrieve string parameters.

Implements IOpaqueAddress.

Definition at line 118 of file GenericAddress.h.

{
return m_par;
}
virtual IRegistry* GenericAddress::registry ( ) const
inlinevirtual

Pointer to directory.

Implements IOpaqueAddress.

Definition at line 94 of file GenericAddress.h.

{
return m_pRegistry;
}
virtual unsigned long GenericAddress::release ( )
inlinevirtual

release reference to object

Implements IOpaqueAddress.

Definition at line 86 of file GenericAddress.h.

{
int cnt = --m_refCount;
if ( 0 == cnt ) {
delete this;
}
return cnt;
}
void GenericAddress::setClID ( const CLID clid)
inline

Access : Set class ID of the link.

Definition at line 106 of file GenericAddress.h.

{
m_clID = clid;
}
virtual void GenericAddress::setRegistry ( IRegistry pRegistry)
inlinevirtual

Set pointer to directory.

Implements IOpaqueAddress.

Definition at line 98 of file GenericAddress.h.

{
m_pRegistry = pRegistry;
}
void GenericAddress::setSvcType ( long  typ)
inline

Access : set the storage type of the class id.

Definition at line 114 of file GenericAddress.h.

{
m_svcType = typ;
}
long GenericAddress::svcType ( ) const
inlinevirtual

Access : retrieve the storage type of the class id.

Implements IOpaqueAddress.

Definition at line 110 of file GenericAddress.h.

{
return m_svcType;
}

Member Data Documentation

CLID GenericAddress::m_clID
protected

Class id.

Definition at line 28 of file GenericAddress.h.

unsigned long GenericAddress::m_ipar[2]
protected

Integer parameters to be accessed.

Definition at line 32 of file GenericAddress.h.

std::string GenericAddress::m_par[3]
protected

String parameters to be accessed.

Definition at line 30 of file GenericAddress.h.

IRegistry* GenericAddress::m_pRegistry
protected

Pointer to corresponding directory.

Definition at line 34 of file GenericAddress.h.

unsigned long GenericAddress::m_refCount
protected

Reference count.

Definition at line 24 of file GenericAddress.h.

long GenericAddress::m_svcType
protected

Storage type.

Definition at line 26 of file GenericAddress.h.


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

Generated at Mon Feb 17 2014 14:38:03 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004