 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef POOL_DBCONTAINER_H
13 #define POOL_DBCONTAINER_H
36 typedef const class Shape *
ShapeH;
64 if ( &
copy !=
this ) {
78 const std::string&
name()
const;
106 const std::string& nam,
119 const std::string& nam,
162 #endif // POOL_DBCONTAINER_H
DbStatus close()
Close the container the handle points to.
void switchPtr(DbContainerObj *obj)
Assign transient object properly (including reference counting)
const IDbContainer * info() const
Let the implementation access the internals.
DbStatus setOption(const DbOption &refOpt)
Pass options to the implementation.
DbStatus select(DbSelect &sel)
Access objects through select staements.
DbContainer(const DbType &typ=POOL_StorageType)
Constructor with initializing arguments.
DbContainer & operator=(const DbContainer ©)
Assignment operator.
const Token * token() const
Access the token of the container object.
DbStatus getOption(DbOption &refOpt)
Access options.
const DbTypeInfo * objectShape(const Guid &nam)
Retrieve persistent type information by name.
DbContainer & operator=(const int)
Assignment operator to reset the handle easily using 0.
This class provides a token that identifies in a unique way objects on the persistent storage.
const class Shape * ShapeH
DbContainer(DbContainerObj *ptr)
Constructor taking transient object.
uint64_t size()
Access to the size of the container.
bool isOpen() const
Check if the container was opened.
const DbContainerObj * ptr() const
Access to underlying object.
DbStatus allocate(const void *object, ShapeH shape, Token::OID_t &oid)
Access objects using pointer and shape.
DbDatabase & containedIn()
Access to the Database the container resides in.
DbStatus fetch(DbSelect &sel)
Fetch next object address of the selection to set token.
int refCount() const
Access reference counter.
DbStatus checkAccess(DbDatabase &dbH, const std::string &nam, const DbType &dbtyp)
Check if we can access the residing in <file> container for reading with the given type.
virtual ~DbContainer()
Standard Destructor.
DbStatus open(DbDatabase &dbH, const std::string &nam, const DbTypeInfo *typ, const DbType &dbtyp, DbAccessMode mod)
Open the container residing in <file> with given name and access mode.
DbStatus store(const void *object, const DbTypeInfo *typ)
Access objects by handle directly.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
DbContainer(const DbContainer &c)
Copy constructor.
const std::string & name() const
Name of the container the handle is supposed to point to.
DbType m_type
Data member: Technology type. Sub-classes need access on re-assignment.
DbStatus load(void **ptr, ShapeH shape, const Token::OID_t &lH)
Select object in the container identified by its handle.
This file contains the class definition for the Token class (migrated from POOL).
DbAccessMode openMode() const
Mode of the handle (READ,WRITE,...)
DbStatus transAct(Transaction::Action action)
Execute Database Transaction Action.