| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DybAddress Class Reference

#include <DybAddress.h>

Inheritance diagram for DybAddress:

[legend]
Collaboration diagram for DybAddress:
[legend]
List of all members.

Public Member Functions

 DybAddress (long svcType, const CLID &clID)
 Constructor.
virtual ~DybAddress ()
 destructor
virtual unsigned long addRef ()
 Add reference to object.
virtual unsigned long release ()
 release reference to object
virtual const CLIDclID () const
 Retrieve class information from link.
virtual long svcType () const
 Retrieve service type.
virtual IRegistryregistry () const
 Update branch name.
virtual void setRegistry (IRegistry *r)
 Update directory pointer.
virtual const std::string * par () const
 Retrieve String parameters.
virtual const unsigned long * ipar () const
 Access to generic link parameters.
void setPar (const std::string *par)
 Set String parameters for the given CLID.
void setIPar (const unsigned long *ipar)
 Set link parameters for the given CLID.

Private Attributes

unsigned long m_refCount
 Count of the number of references to this address.
CLID m_clID
 The CLID of the class this object is representing.
long m_svcType
 The service type that is realizating the class this object is representing.
IRegistryp_registry
 Pointer this objects node in a data store.
std::string * p_par
 String parameters for the CLID.
unsigned long * p_ipar
 link parameters for the CLID

Detailed Description

Definition at line 6 of file DybAddress.h.


Constructor & Destructor Documentation

DybAddress::DybAddress ( long  svcType,
const CLID clID 
)

Constructor.

Definition at line 3 of file DybAddress.cpp.

00004                                          :
00005   m_refCount(0),
00006   m_clID(clID),
00007   m_svcType(svcType),
00008   p_par(0),
00009   p_ipar(0) {
00010 }

DybAddress::~DybAddress (  )  [virtual]

destructor

Definition at line 12 of file DybAddress.cpp.

00012                         {
00013   if (0 != p_ipar) {
00014     delete [] p_ipar;
00015   }
00016   if (0 != p_par) {
00017     delete [] p_par;
00018   }
00019 }


Member Function Documentation

unsigned long DybAddress::addRef (  )  [virtual]

Add reference to object.

Implements IOpaqueAddress.

Definition at line 21 of file DybAddress.cpp.

00021                                  {
00022   return ++m_refCount;
00023 }

unsigned long DybAddress::release (  )  [virtual]

release reference to object

Implements IOpaqueAddress.

Definition at line 25 of file DybAddress.cpp.

00025                                   {
00026   int result = --m_refCount;
00027   if ( 0 == result )   {
00028     delete this;
00029   }
00030   return result;
00031 }

const CLID & DybAddress::clID (  )  const [virtual]

Retrieve class information from link.

Implements IOpaqueAddress.

Definition at line 33 of file DybAddress.cpp.

00033                                    {
00034   return m_clID;
00035 }

long DybAddress::svcType (  )  const [virtual]

Retrieve service type.

Implements IOpaqueAddress.

Definition at line 37 of file DybAddress.cpp.

00037                                {
00038   return m_svcType;
00039 }

IRegistry * DybAddress::registry (  )  const [virtual]

Update branch name.

Implements IOpaqueAddress.

Definition at line 41 of file DybAddress.cpp.

00041                                       {
00042   return p_registry;
00043 }

void DybAddress::setRegistry ( IRegistry r  )  [virtual]

Update directory pointer.

Implements IOpaqueAddress.

Definition at line 45 of file DybAddress.cpp.

00045                                          {
00046   p_registry = r;
00047 }

const std::string * DybAddress::par (  )  const [virtual]

Retrieve String parameters.

Implements IOpaqueAddress.

Definition at line 57 of file DybAddress.cpp.

00057                                        {
00058   return p_par;
00059 }

const unsigned long * DybAddress::ipar (  )  const [virtual]

Access to generic link parameters.

Implements IOpaqueAddress.

Definition at line 61 of file DybAddress.cpp.

00061                                            {
00062   return p_ipar;
00063 }

void DybAddress::setPar ( const std::string *  par  ) 

Set String parameters for the given CLID.

Definition at line 49 of file DybAddress.cpp.

00049                                             {
00050   p_par = const_cast<std::string*>(par);
00051 }

void DybAddress::setIPar ( const unsigned long *  ipar  ) 

Set link parameters for the given CLID.

Definition at line 53 of file DybAddress.cpp.

00053                                                   {
00054   p_ipar = const_cast<unsigned long*>(ipar);
00055 }


Member Data Documentation

unsigned long DybAddress::m_refCount [private]

Count of the number of references to this address.

Definition at line 50 of file DybAddress.h.

CLID DybAddress::m_clID [private]

The CLID of the class this object is representing.

Definition at line 53 of file DybAddress.h.

long DybAddress::m_svcType [private]

The service type that is realizating the class this object is representing.

Definition at line 56 of file DybAddress.h.

IRegistry* DybAddress::p_registry [private]

Pointer this objects node in a data store.

Definition at line 59 of file DybAddress.h.

std::string* DybAddress::p_par [private]

String parameters for the CLID.

Definition at line 62 of file DybAddress.h.

unsigned long* DybAddress::p_ipar [private]

link parameters for the CLID

Definition at line 65 of file DybAddress.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:38:35 2011 for DataUtilities by doxygen 1.4.7