1 #ifndef GAUDIKERNEL_GENERICADDRESS_H 2 #define GAUDIKERNEL_GENERICADDRESS_H 24 unsigned long m_refCount = 0;
32 unsigned long m_ipar[2] = {0xFFFFFFFF, 0xFFFFFFFF};
41 :
IOpaqueAddress( copy ), m_svcType( copy.m_svcType ), m_clID( copy.m_clID ), m_pRegistry( copy.m_pRegistry )
43 m_par[0] = copy.
m_par[0];
44 m_par[1] = copy.
m_par[1];
45 m_ipar[0] = copy.
m_ipar[0];
46 m_ipar[1] = copy.
m_ipar[1];
50 unsigned long ip2 = 0 )
51 : m_svcType( svc ), m_clID( clid )
60 unsigned long addRef()
override {
return ++m_refCount; }
64 int cnt = --m_refCount;
65 if ( 0 == cnt )
delete this;
73 const CLID&
clID()
const override {
return m_clID; }
77 long svcType()
const override {
return m_svcType; }
83 const unsigned long*
ipar()
const override {
return m_ipar; }
85 #endif // GAUDIKERNEL_GENERICADDRESS_H GenericAddress(const GenericAddress ©)
Standard Copy Constructor (note: m_refCount is NOT copied)
unsigned long m_ipar[2]
Integer parameters to be accessed.
std::string m_par[3]
String parameters to be accessed.
void setSvcType(long typ)
Access : set the storage type of the class id.
unsigned long addRef() override
Add reference to object.
unsigned long release() override
release reference to object
IRegistry * registry() const override
Pointer to directory.
Generic Transient Address.
void setClID(const CLID &clid)
Access : Set class ID of the link.
const unsigned long * ipar() const override
Retrieve integer parameters.
const std::string * par() const override
Retrieve string parameters.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
void setRegistry(IRegistry *pRegistry) override
Set pointer to directory.
unsigned int CLID
Class ID definition.
long svcType() const override
Access : retrieve the storage type of the class id.
GenericAddress(long svc, const CLID &clid, std::string p1="", std::string p2="", unsigned long ip1=0, unsigned long ip2=0)
Standard Constructor.
Opaque address interface definition.
const CLID & clID() const override
Access : Retrieve class ID of the link.