Go to the documentation of this file.
30 unsigned long m_refCount = 0;
38 unsigned long m_ipar[2] = { 0xFFFFFFFF, 0xFFFFFFFF };
47 :
IOpaqueAddress( copy ), m_svcType( copy.m_svcType ), m_clID( copy.m_clID ), m_pRegistry( copy.m_pRegistry ) {
48 m_par[0] = copy.
m_par[0];
49 m_par[1] = copy.
m_par[1];
50 m_ipar[0] = copy.
m_ipar[0];
51 m_ipar[1] = copy.
m_ipar[1];
55 unsigned long ip2 = 0 )
56 : m_svcType( svc ), m_clID( clid ) {
57 m_par[0] = std::move(
p1 );
58 m_par[1] = std::move(
p2 );
66 unsigned long addRef()
override {
return ++m_refCount; }
69 unsigned long cnt = --m_refCount;
70 if ( 0 == cnt )
delete this;
78 const CLID&
clID()
const override {
return m_clID; }
82 long svcType()
const override {
return m_svcType; }
86 const std::string*
par()
const override {
return m_par; }
88 const unsigned long*
ipar()
const override {
return m_ipar; }
std::string m_par[3]
String parameters to be accessed.
unsigned long m_ipar[2]
Integer parameters to be accessed.
void setSvcType(long typ)
Access : set the storage type of the class id.
const CLID & clID() const override
Access : Retrieve class ID of the link.
long svcType() const override
Access : retrieve the storage type of the class id.
void setRegistry(IRegistry *pRegistry) override
Set pointer to directory.
void setClID(const CLID &clid)
Access : Set class ID of the link.
GenericAddress(long svc, const CLID &clid, std::string p1="", std::string p2="", unsigned long ip1=0, unsigned long ip2=0)
Standard Constructor.
GenericAddress(const GenericAddress ©)
Standard Copy Constructor (note: m_refCount is NOT copied)
unsigned int CLID
Class ID definition.
unsigned long release() override
release reference to object
const std::string * par() const override
Retrieve string parameters.
unsigned long addRef() override
Add reference to object.
GenericAddress & operator=(const GenericAddress ©)=default
GenericAddress()=default
Dummy constructor.
const unsigned long * ipar() const override
Retrieve integer parameters.
IRegistry * registry() const override
Pointer to directory.