Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbRooRoOriginR Class Reference

A persistent "origin". More...

List of all members.

Public Types

enum  OriginType {
  FIRST = 0, MASTER = FIRST, SLAVE, REPLICA,
  TEST, LAST = TEST
}
 Supported origin types. More...

enum  {
  FIRST_ID = 0, MASTER_ID = FIRST_ID, REPLICA_ID, TEST_ID,
  LAST_ID = 255
}
 Predefined (reserved) origin identifiers (total of 256). More...


Public Member Functions

 CdbRooRoOriginR (const char *theName="", const UShort_t &theId=0, OriginType theType=FIRST, const BdbTime &theCreated=BdbTime::minusInfinity, const std::string &theDescription="")
virtual ~CdbRooRoOriginR ()
std::string name () const
UShort_t id () const
OriginType type () const
BdbTime created () const
std::string description () const
void dump (std::ostream &o) const

Static Public Member Functions

bool name2type (const std::string &theName, OriginType &theType)
 Translate an origin name into its type.

bool type2name (OriginType theType, std::string &theName)
 Translate an origin type into its name.


Detailed Description

A persistent "origin".

Definition at line 15 of file CdbRooRoOriginR.rdl.


Member Enumeration Documentation

anonymous enum
 

Predefined (reserved) origin identifiers (total of 256).

Enumeration values:
FIRST_ID 
MASTER_ID 
REPLICA_ID 
TEST_ID 
LAST_ID 

Definition at line 33 of file CdbRooRoOriginR.rdl.

enum CdbRooRoOriginR::OriginType
 

Supported origin types.

Enumeration values:
FIRST 
MASTER 
SLAVE 
REPLICA 
TEST 
LAST 

Definition at line 21 of file CdbRooRoOriginR.rdl.


Constructor & Destructor Documentation

CdbRooRoOriginR::CdbRooRoOriginR const char *    theName = "",
const UShort_t &    theId = 0,
OriginType    theType = FIRST,
const BdbTime   theCreated = BdbTime::minusInfinity,
const std::string &    theDescription = ""
[inline]
 

Parameters:
theName  the name of the origin
theId  the identifier of the origin
theType  the type from the above defined enumerated type
theCreated  the time when the origin is supposed to be created
theDescription  the description of the origin

Definition at line 56 of file CdbRooRoOriginR.rdl.

virtual CdbRooRoOriginR::~CdbRooRoOriginR   [inline, virtual]
 

Definition at line 69 of file CdbRooRoOriginR.rdl.


Member Function Documentation

BdbTime CdbRooRoOriginR::created   const [inline]
 

Definition at line 74 of file CdbRooRoOriginR.rdl.

References CdbRooRoTimeR::getBdbTime().

Referenced by dump().

std::string CdbRooRoOriginR::description   const [inline]
 

Definition at line 75 of file CdbRooRoOriginR.rdl.

void CdbRooRoOriginR::dump std::ostream &    o const
 

Definition at line 51 of file CdbRooRoOriginR.cc.

References created(), CdbRooRoTimeR::getBdbTime(), and CdbTimeUtils::time2string().

UShort_t CdbRooRoOriginR::id   const [inline]
 

Definition at line 72 of file CdbRooRoOriginR.rdl.

Referenced by CdbRooRoRegistry::findByOrigin().

std::string CdbRooRoOriginR::name   const [inline]
 

Definition at line 71 of file CdbRooRoOriginR.rdl.

Referenced by CdbRooRoRegistry::findLocal().

bool CdbRooRoOriginR::name2type const std::string &    theName,
OriginType   theType
[static]
 

Translate an origin name into its type.

Definition at line 26 of file CdbRooRoOriginR.cc.

References MASTER, REPLICA, SLAVE, and TEST.

OriginType CdbRooRoOriginR::type   const [inline]
 

Definition at line 73 of file CdbRooRoOriginR.rdl.

bool CdbRooRoOriginR::type2name OriginType    theType,
std::string &    theName
[static]
 

Translate an origin type into its name.

Definition at line 40 of file CdbRooRoOriginR.cc.

References FIRST, and LAST.


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:25 2005 for CDB by doxygen1.3-rc3