1 #ifndef GAUDIKERNEL_GENERICADDRESS_H 2 #define GAUDIKERNEL_GENERICADDRESS_H 23 unsigned long m_refCount = 0;
31 unsigned long m_ipar[2] = {0xFFFFFFFF, 0xFFFFFFFF};
40 :
IOpaqueAddress( copy ), m_svcType( copy.m_svcType ), m_clID( copy.m_clID ), m_pRegistry( copy.m_pRegistry ) {
41 m_par[0] = copy.
m_par[0];
42 m_par[1] = copy.
m_par[1];
43 m_ipar[0] = copy.
m_ipar[0];
44 m_ipar[1] = copy.
m_ipar[1];
48 unsigned long ip2 = 0 )
49 : m_svcType( svc ), m_clID( clid ) {
57 unsigned long addRef()
override {
return ++m_refCount; }
60 int cnt = --m_refCount;
61 if ( 0 == cnt )
delete this;
69 const CLID&
clID()
const override {
return m_clID; }
73 long svcType()
const override {
return m_svcType; }
79 const unsigned long*
ipar()
const override {
return m_ipar; }
81 #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.