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

CdbRooRoCdb Class Reference

The starting point for the public API of the Conditions/DB. More...

#include <CdbRooRoCdb.hh>

Inheritance diagram for CdbRooRoCdb:

Cdb List of all members.

Public Member Functions

 CdbRooRoCdb ()
 The default constructor.

virtual ~CdbRooRoCdb ()
 The destructor.

virtual const char * technologyName () const
 Get the technology name of this instance.

virtual const char * implementationName () const
 Get the implementation name of this instance.

virtual void initialize ()
 Initialize the API.

virtual bool isInitialized ()
 Check if the API is initialized.

virtual CdbStatus getDefaultDatabase (std::string &theDatabase)
 Get default database name.

virtual CdbStatus getDefaultView (std::string &theView, const char *theDatabase)
 Get default view name.

virtual CdbStatus setDefaultDatabase (const char *theDatabaseName)
 Set default database name.

virtual CdbStatus setDefaultView (const char *theViewName, const char *theDatabaseName)
 Set default view name.

virtual CdbStatus findDatabase (CdbDatabasePtr &thePtr, const char *theName=0)
 Find the specified Database.

virtual CdbStatus databaseIterator (CdbDatabaseItr &theItr)
 Initialize an instance of an iterator for the known databases names.


Protected Member Functions

virtual CdbTransactionBasetransaction (CdbTransaction::Mode theMode) const
 Get the transaction manager and start new transaction if needed.


Detailed Description

The starting point for the public API of the Conditions/DB.

This is the actual implementation for a singleton interface based on the brand new data structures. The full glory of the core API features are available with this implementation.

See also:
Cdb

Definition at line 19 of file CdbRooRoCdb.hh.


Constructor & Destructor Documentation

CdbRooRoCdb::CdbRooRoCdb  
 

The default constructor.

More details...

Definition at line 72 of file CdbRooRoCdb.cc.

References CDB_DEBUG_STREAM, CdbRooReadonly::implementation(), Cdb::set(), and CdbRooReadonly::technology().

CdbRooRoCdb::~CdbRooRoCdb   [virtual]
 

The destructor.

The destructor is protected to prevent clients from deleting objects which may be shared with others.

Definition at line 97 of file CdbRooRoCdb.cc.


Member Function Documentation

CdbStatus CdbRooRoCdb::databaseIterator CdbDatabaseItr   theItr [virtual]
 

Initialize an instance of an iterator for the known databases names.

Implements the corresponding method from the base class or interface.

See also:
Cdb::databaseIterator()

Implements Cdb.

Definition at line 353 of file CdbRooRoCdb.cc.

References CdbDatabaseItr, CdbStatus::Error, Cdb::get(), implementationName(), isInitialized(), CdbStatus::Success, and technologyName().

CdbStatus CdbRooRoCdb::findDatabase CdbDatabasePtr   thePtr,
const char *    theName = 0
[virtual]
 

Find the specified Database.

Implements the corresponding method from the base class or interface.

See also:
Cdb::findDatabase()

Implements Cdb.

Definition at line 285 of file CdbRooRoCdb.cc.

References CdbStatus::Error, Cdb::get(), getDefaultDatabase(), implementationName(), isInitialized(), CdbStatus::Success, and technologyName().

CdbStatus CdbRooRoCdb::getDefaultDatabase std::string &    theDatabase [virtual]
 

Get default database name.

Implements the corresponding method from the base class or interface.

See also:
Cdb::getDefaultDatabase()

Implements Cdb.

Definition at line 182 of file CdbRooRoCdb.cc.

References isInitialized(), and CdbStatus::Success.

Referenced by findDatabase().

CdbStatus CdbRooRoCdb::getDefaultView std::string &    theView,
const char *    theDatabase
[virtual]
 

Get default view name.

Implements the corresponding method from the base class or interface.

See also:
Cdb::getDefaultView()

Implements Cdb.

Definition at line 192 of file CdbRooRoCdb.cc.

References CdbStatus::IllegalParameters, isInitialized(), CdbStatus::NotFound, and CdbStatus::Success.

const char * CdbRooRoCdb::implementationName   const [virtual]
 

Get the implementation name of this instance.

Implements the corresponding method from the base class or interface.

See also:
CdbAPIBase::implementationName()

Implements Cdb.

Definition at line 107 of file CdbRooRoCdb.cc.

References CdbRooReadonly::implementation().

Referenced by databaseIterator(), and findDatabase().

void CdbRooRoCdb::initialize   [virtual]
 

Initialize the API.

Implements the corresponding method from the base class or interface.

See also:
CdbAPIBase::initialize()

Implements Cdb.

Definition at line 113 of file CdbRooRoCdb.cc.

References CDB_DEBUG_STREAM, CdbEnvironment::extra(), CdbRooReadonly::implementation(), CdbStatus::NotFound, CdbAnyTypeDict< std::string >::replace(), CdbStatus::Success, and CdbRooReadonly::technology().

bool CdbRooRoCdb::isInitialized   [virtual]
 

Check if the API is initialized.

Implements the corresponding method from the base class or interface.

See also:
CdbAPIBase::isInitialized()

Implements Cdb.

Definition at line 176 of file CdbRooRoCdb.cc.

Referenced by databaseIterator(), findDatabase(), getDefaultDatabase(), getDefaultView(), setDefaultDatabase(), and setDefaultView().

CdbStatus CdbRooRoCdb::setDefaultDatabase const char *    theDatabaseName [virtual]
 

Set default database name.

Implements the corresponding method from the base class or interface.

See also:
Cdb::setDefaultDatabase()

Implements Cdb.

Definition at line 217 of file CdbRooRoCdb.cc.

References CdbStatus::IllegalParameters, isInitialized(), and CdbStatus::Success.

CdbStatus CdbRooRoCdb::setDefaultView const char *    theViewName,
const char *    theDatabaseName
[virtual]
 

Set default view name.

Implements the corresponding method from the base class or interface.

See also:
Cdb::setDefaultView()

Implements Cdb.

Definition at line 238 of file CdbRooRoCdb.cc.

References CdbStatus::IllegalParameters, isInitialized(), CdbStatus::NotFound, and CdbStatus::Success.

const char * CdbRooRoCdb::technologyName   const [virtual]
 

Get the technology name of this instance.

Implements the corresponding method from the base class or interface.

See also:
CdbAPIBase::technologyName()

Implements Cdb.

Definition at line 101 of file CdbRooRoCdb.cc.

References CdbRooReadonly::technology().

Referenced by databaseIterator(), and findDatabase().

CdbTransactionBase * CdbRooRoCdb::transaction CdbTransaction::Mode    theMode const [protected, virtual]
 

Get the transaction manager and start new transaction if needed.

Implements the corresponding method from the base class or interface.

See also:
Cdb::transaction()

Implements Cdb.

Definition at line 382 of file CdbRooRoCdb.cc.


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