BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
TreeAddress Class Reference

#include <GaudiKernel/TreeAddress.h>

+ Inheritance diagram for TreeAddress:

Public Member Functions

 TreeAddress ()
 Dummy constructor.
 
 TreeAddress (const TreeAddress &copy)
 Standard Constructor.
 
 TreeAddress (long svc, const CLID &clid, DatabaseRecord &records, const unsigned long *ipar)
 Standard Constructor.
 
virtual ~TreeAddress ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
virtual IRegistry * registry () const
 Pointer to directory.
 
virtual void setRegistry (IRegistry *pRegistry)
 Set pointer to directory.
 
const CLID & clID () 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::string * par () const
 
virtual DatabaseRecordpp ()
 
virtual const unsigned long * ipar () const
 Retrieve integer parameters.
 
void setRunFrom (int runFrom)
 set run from
 
void setRunTo (int runTo)
 set run to
 
int getRunFrom ()
 get run from
 
int getRunTo ()
 get run to
 

Protected Attributes

unsigned long m_refCount
 Reference count.
 
long m_svcType
 Storage type.
 
CLID m_clID
 Class id.
 
unsigned long m_ipar [2]
 String parameters to be accessed.
 
unsigned long m_treesize [9]
 
IRegistry * m_pRegistry
 Pointer to corresponding directory.
 
DatabaseRecordm_records
 
int m_runFrom
 
int m_runTo
 

Detailed Description

Tree 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 26 of file TreeAddress.h.

Constructor & Destructor Documentation

◆ TreeAddress() [1/3]

TreeAddress::TreeAddress ( )
inline

Dummy constructor.

Definition at line 49 of file TreeAddress.h.

50 : m_refCount(0),
51 m_svcType(0),
52 m_clID(0),
54 {
55 // m_ipar[0]=m_ipar[1]=m_ipar[2]=m_ipar[3]=0xFFFFFFFF;
56 }
unsigned long m_refCount
Reference count.
Definition: TreeAddress.h:29
CLID m_clID
Class id.
Definition: TreeAddress.h:33
long m_svcType
Storage type.
Definition: TreeAddress.h:31
IRegistry * m_pRegistry
Pointer to corresponding directory.
Definition: TreeAddress.h:41

◆ TreeAddress() [2/3]

TreeAddress::TreeAddress ( const TreeAddress copy)
inline

Standard Constructor.

Definition at line 58 of file TreeAddress.h.

59 : IOpaqueAddress(copy),
60 m_refCount(0),
61 m_svcType(copy.m_svcType),
62 m_clID(copy.m_clID),
63 m_pRegistry(copy.m_pRegistry)
64 {
65
66 }
uint32_t copy(const node_t &list, uint32_t *dest, size_t max)
Definition: node.cxx:64

◆ TreeAddress() [3/3]

TreeAddress::TreeAddress ( long  svc,
const CLID &  clid,
DatabaseRecord records,
const unsigned long *  ipar 
)
inline

Standard Constructor.

Definition at line 69 of file TreeAddress.h.

74 : m_refCount(0),
75 m_svcType(svc),
76 m_clID(clid),
78 {
79 m_records=&records;
80 m_ipar[0] = ipar[0];
81 m_ipar[1] = ipar[1];
82 }
virtual const unsigned long * ipar() const
Retrieve integer parameters.
Definition: TreeAddress.h:135
DatabaseRecord * m_records
Definition: TreeAddress.h:44
unsigned long m_ipar[2]
String parameters to be accessed.
Definition: TreeAddress.h:37

◆ ~TreeAddress()

virtual TreeAddress::~TreeAddress ( )
inlinevirtual

Standard Destructor.

Definition at line 86 of file TreeAddress.h.

86 {
87 }

Member Function Documentation

◆ addRef()

virtual unsigned long TreeAddress::addRef ( )
inlinevirtual

Add reference to object.

Definition at line 90 of file TreeAddress.h.

90 {
91 return ++m_refCount;
92 }

◆ clID()

const CLID & TreeAddress::clID ( ) const
inline

Access : Retrieve class ID of the link.

Definition at line 110 of file TreeAddress.h.

110 {
111 return m_clID;
112 }

◆ getRunFrom()

int TreeAddress::getRunFrom ( )
inline

get run from

Definition at line 148 of file TreeAddress.h.

148 {
149 return m_runFrom;
150 }

Referenced by TreeCalBaseCnv::internalCreateObj().

◆ getRunTo()

int TreeAddress::getRunTo ( )
inline

get run to

Definition at line 152 of file TreeAddress.h.

152 {
153 return m_runTo;
154 }

Referenced by TreeCalBaseCnv::internalCreateObj().

◆ ipar()

virtual const unsigned long * TreeAddress::ipar ( ) const
inlinevirtual

Retrieve integer parameters.

Definition at line 135 of file TreeAddress.h.

135 {
136 return m_ipar;
137 }

Referenced by TreeAddress().

◆ par()

virtual const std::string * TreeAddress::par ( ) const
inlinevirtual

Definition at line 126 of file TreeAddress.h.

126 {
127 //return m_par;
128 }

◆ pp()

◆ registry()

virtual IRegistry * TreeAddress::registry ( ) const
inlinevirtual

Pointer to directory.

Definition at line 102 of file TreeAddress.h.

102 {
103 return m_pRegistry;
104 }

◆ release()

virtual unsigned long TreeAddress::release ( )
inlinevirtual

release reference to object

Definition at line 94 of file TreeAddress.h.

94 {
95 int cnt = --m_refCount;
96 if ( 0 == cnt ) {
97 delete this;
98 }
99 return cnt;
100 }

◆ setClID()

void TreeAddress::setClID ( const CLID &  clid)
inline

Access : Set class ID of the link.

Definition at line 114 of file TreeAddress.h.

114 {
115 m_clID = clid;
116 }

◆ setRegistry()

virtual void TreeAddress::setRegistry ( IRegistry *  pRegistry)
inlinevirtual

Set pointer to directory.

Definition at line 106 of file TreeAddress.h.

106 {
107 m_pRegistry = pRegistry;
108 }

◆ setRunFrom()

void TreeAddress::setRunFrom ( int  runFrom)
inline

set run from

Definition at line 140 of file TreeAddress.h.

140 {
141 m_runFrom= runFrom;
142 }

Referenced by CalibMySQLCnvSvc::createCalib(), and CalibMySQLCnvSvc::updateCalib().

◆ setRunTo()

void TreeAddress::setRunTo ( int  runTo)
inline

set run to

Definition at line 144 of file TreeAddress.h.

144 {
145 m_runTo= runTo;
146 }

Referenced by CalibMySQLCnvSvc::createCalib(), and CalibMySQLCnvSvc::updateCalib().

◆ setSvcType()

void TreeAddress::setSvcType ( long  typ)
inline

Access : set the storage type of the class id.

Definition at line 122 of file TreeAddress.h.

122 {
123 m_svcType = typ;
124 }

◆ svcType()

long TreeAddress::svcType ( ) const
inline

Access : retrieve the storage type of the class id.

Definition at line 118 of file TreeAddress.h.

118 {
119 return m_svcType;
120 }

Member Data Documentation

◆ m_clID

CLID TreeAddress::m_clID
protected

Class id.

Definition at line 33 of file TreeAddress.h.

Referenced by clID(), and setClID().

◆ m_ipar

unsigned long TreeAddress::m_ipar[2]
protected

String parameters to be accessed.

Integer parameters to be accessed

Definition at line 37 of file TreeAddress.h.

Referenced by ipar(), and TreeAddress().

◆ m_pRegistry

IRegistry* TreeAddress::m_pRegistry
protected

Pointer to corresponding directory.

Definition at line 41 of file TreeAddress.h.

Referenced by registry(), and setRegistry().

◆ m_records

DatabaseRecord* TreeAddress::m_records
protected

Definition at line 44 of file TreeAddress.h.

Referenced by pp(), and TreeAddress().

◆ m_refCount

unsigned long TreeAddress::m_refCount
protected

Reference count.

Definition at line 29 of file TreeAddress.h.

Referenced by addRef(), and release().

◆ m_runFrom

int TreeAddress::m_runFrom
protected

Definition at line 45 of file TreeAddress.h.

Referenced by getRunFrom(), and setRunFrom().

◆ m_runTo

int TreeAddress::m_runTo
protected

Definition at line 46 of file TreeAddress.h.

Referenced by getRunTo(), and setRunTo().

◆ m_svcType

long TreeAddress::m_svcType
protected

Storage type.

Definition at line 31 of file TreeAddress.h.

Referenced by setSvcType(), and svcType().

◆ m_treesize

unsigned long TreeAddress::m_treesize[9]
protected

Definition at line 38 of file TreeAddress.h.


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