![]() |
ATLAS Offline Software
|
Description: More...
#include <StorageSvc/DbDomain.h>
Public Member Functions | |
| DbDomain (DbDomainObj *dom) | |
| Friend's constructor. | |
| DbDomain (const DbType &type) | |
| Constructor using Db type. | |
| DbDomain (const DbDomain ©) | |
| Copy constructor. | |
| virtual | ~DbDomain () |
| Standard destructor. | |
| DbDomain & | operator= (const DbDomain ©) |
| Assignment operator. | |
| DbDomain & | operator= (const int) |
| Assignment operator to reset handel easily using 0. | |
| const std::string & | name () const |
| Acces to the domain name. | |
| int | refCount () const |
| Access reference counter. | |
| StatusCode | open (ITechFactory *imp, const DbType &technology, Io::IoFlag mod=Io::READ) |
| Open the domain. | |
| StatusCode | close () |
| Close domain. | |
| Io::IoFlag | openMode () const |
| Access to access mode. | |
| const DbDatabaseObj * | find (const std::string &db_name) const |
| Find Database in domain. | |
| DbDatabaseObj * | find (const std::string &db_name) |
| StatusCode | add (const std::string &nam, DbDatabaseObj *db) |
| Add database to the domain. | |
| StatusCode | remove (DbDatabaseObj *db) |
| Remove a database from the domain. | |
| StatusCode | ageOpenDbs () |
| Increase the age of all open databases. | |
| StatusCode | closeAgedDbs () |
| Check if databases are present, which aged a lot and need to be closed. | |
| void | setAgeLimit (int value) |
| Set the maximal allowed age limit for files in this domain. | |
| int | ageLimit () const |
| Access the maximal age limit. | |
| ITechDomain * | info () |
| Let the implementation access the internals. | |
| const ITechDomain * | info () const |
| StatusCode | setOption (const DbOption &refOpt) |
| Set domain specific options. | |
| StatusCode | getOption (DbOption &refOpt) const |
| Access domain specific options. | |
| ITechFactory * | techFactory () |
| Allow access to the Database implementation. | |
| const ITechFactory * | techFactory () const |
| DbDomainObj * | operator-> () |
| Dereference operator. | |
| bool | operator! () const |
| Validity check through operator NOT. | |
| const DbDomainObj * | ptr () const |
| Access to underlying object. | |
| bool | isValid () const |
| Validity check (Objy like). | |
| const DbType & | type () const |
| Inquire storage type of the handle. | |
Protected Types | |
| typedef DbDomainObj | _DataType |
| Data type definition. | |
| typedef DbHandleBase< _DataType > | Base |
| Data type definition. | |
Protected Member Functions | |
| void | setType (const DbType &typ) |
| Set handle type. | |
| void | setPtr (DbDomainObj *ptr) |
| Set data pointer. | |
Protected Attributes | |
| DbDomainObj * | m_ptr |
| Data member: Object pointer. Sub-classes need access on re-assignment. | |
| DbType | m_type |
| Data member: Technology type. Sub-classes need access on re-assignment. | |
Private Member Functions | |
| void | switchPtr (DbDomainObj *obj) |
| Assign transient object properly (including reference counting). | |
Friends | |
| class | DbDomainObj |
| Friend declarations. | |
Description:
Handle managing a DbDomainObj, a generic Database domain object.
Definition at line 33 of file DbDomain.h.
|
protectedinherited |
Data type definition.
Definition at line 20 of file DbHandleBase.h.
|
protectedinherited |
Data type definition.
Definition at line 22 of file DbHandleBase.h.
| DbDomain::DbDomain | ( | DbDomainObj * | dom | ) |
Friend's constructor.
|
inlinevirtual |
Standard destructor.
Definition at line 49 of file DbDomain.h.
| StatusCode DbDomain::add | ( | const std::string & | nam, |
| DbDatabaseObj * | db ) |
Add database to the domain.
| int DbDomain::ageLimit | ( | ) | const |
Access the maximal age limit.
| StatusCode DbDomain::ageOpenDbs | ( | ) |
Increase the age of all open databases.
| StatusCode DbDomain::close | ( | ) |
Close domain.
| StatusCode DbDomain::closeAgedDbs | ( | ) |
Check if databases are present, which aged a lot and need to be closed.
| DbDatabaseObj * DbDomain::find | ( | const std::string & | db_name | ) |
| const DbDatabaseObj * DbDomain::find | ( | const std::string & | db_name | ) | const |
Find Database in domain.
| StatusCode DbDomain::getOption | ( | DbOption & | refOpt | ) | const |
Access domain specific options.
| refOpt | [IN] Reference to option object |
| ITechDomain * DbDomain::info | ( | ) |
Let the implementation access the internals.
| const ITechDomain * DbDomain::info | ( | ) | const |
|
inlineinherited |
| const std::string & DbDomain::name | ( | ) | const |
Acces to the domain name.
| StatusCode DbDomain::open | ( | ITechFactory * | imp, |
| const DbType & | technology, | ||
| Io::IoFlag | mod = Io::READ ) |
Open the domain.
| imp | [IN] Implementation object. |
| technology | [IN] Technology identifier of this domain. |
| mod | [IN] Access mode: READ, UPDATE, CREATE etc. |
| Io::IoFlag DbDomain::openMode | ( | ) | const |
Access to access mode.
|
inlineinherited |
|
inlineinherited |
Assignment operator to reset handel easily using 0.
Definition at line 59 of file DbDomain.h.
|
inlineinherited |
| int DbDomain::refCount | ( | ) | const |
Access reference counter.
| StatusCode DbDomain::remove | ( | DbDatabaseObj * | db | ) |
Remove a database from the domain.
| void DbDomain::setAgeLimit | ( | int | value | ) |
Set the maximal allowed age limit for files in this domain.
Set domain specific options.
| refOpt | [IN] Reference to option object |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
Set handle type.
Definition at line 40 of file DbHandleBase.h.
|
private |
Assign transient object properly (including reference counting).
| ITechFactory * DbDomain::techFactory | ( | ) |
Allow access to the Database implementation.
| const ITechFactory * DbDomain::techFactory | ( | ) | const |
|
inlineinherited |
|
friend |
Friend declarations.
Definition at line 36 of file DbDomain.h.
|
protectedinherited |
Data member: Object pointer. Sub-classes need access on re-assignment.
Definition at line 24 of file DbHandleBase.h.
|
protectedinherited |
Data member: Technology type. Sub-classes need access on re-assignment.
Definition at line 26 of file DbHandleBase.h.