Inheritance diagram for CdbBdbSOriginP:

Public Types | |
| enum | OriginType { FIRST = 0, MASTER = FIRST, SLAVE, REPLICA, TEST, LAST = TEST } |
| The 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 | |
| CdbBdbSOriginP (const char *theName, d_UShort theId, OriginType theType, const BdbTime &theCreationTime, const char *theDescription, const char *theDbIdRange) | |
| Normal constructor. | |
| virtual | ~CdbBdbSOriginP () |
| Destructor. | |
| OriginType | type () const |
| BdbTime | created () const |
| ooString (32) description() const | |
| ooString (32) dbidrange() const | |
| void | dump (std::ostream &o) const |
| Dump the contents of the origin. | |
Static Public Member Functions | |
| CdbStatus | name2type (const char *theName, OriginType &theType) |
| Convert specified name to the type identifier. | |
| const char * | type2name (OriginType theType) |
| Convert specified type identifier into the name. | |
| bool | isReservedId (d_UShort theId) |
| Check if specified identifier is a reserved one. | |
Static Public Attributes | |
| const char * | OriginName [] |
| The names of the above defined origin types. | |
Origins represent integral databases of the distributed Condition/DB.
NOTE: Origins themselves are not databases, they are just descriptors of these databases.
Definition at line 22 of file CdbBdbSOriginP.ddl.
|
|
Predefined (reserved) origin identifiers (total of 256).
Definition at line 44 of file CdbBdbSOriginP.ddl. |
|
|
The supported origin types.
Definition at line 28 of file CdbBdbSOriginP.ddl. |
|
||||||||||||||||||||||||||||
|
Normal constructor. WARNING: Inappropriate values of the parameters will cause the crash of the constructor to avoid creating disformed persistent data structures.
Definition at line 24 of file CdbBdbSOriginP.cc. |
|
|
Destructor.
Definition at line 46 of file CdbBdbSOriginP.cc. |
|
|
Definition at line 56 of file CdbBdbSOriginP.cc. |
|
|
Dump the contents of the origin.
Definition at line 102 of file CdbBdbSOriginP.cc. References CdbBdbSCollectionElementP::id(), and type2name(). |
|
|
Check if specified identifier is a reserved one.
Definition at line 96 of file CdbBdbSOriginP.cc. References LAST_ID. |
|
||||||||||||
|
Convert specified name to the type identifier. The passed name must look in the same way as the corressponding value of the enumerated type. For example MASTER corresponds to string "MASTER". This is the case sensitive translation. Return CdbStatus::Success if specified name is valid.
Definition at line 74 of file CdbBdbSOriginP.cc. References CdbStatus::NotFound, and CdbStatus::Success. |
|
|
Reimplemented from CdbBdbSCollectionElementP. |
|
|
Reimplemented from CdbBdbSCollectionElementP. |
|
|
Definition at line 50 of file CdbBdbSOriginP.cc. |
|
|
Convert specified type identifier into the name. Will return 0 if specified type does not exist. Will return a pointer onto a static string in case of success.
Definition at line 88 of file CdbBdbSOriginP.cc. References FIRST, LAST, and OriginName. Referenced by dump(). |
|
|
Initial value: { "MASTER",
"SLAVE",
"REPLICA",
"TEST" }
Definition at line 19 of file CdbBdbSOriginP.cc. Referenced by type2name(). |
1.3-rc3