![]() |
ATLAS Offline Software
|
This class provides the interface to the APR persistency software. More...
#include <IPoolSvc.h>
Public Types | |
| enum | PoolStream { kInputStream , kOutputStream } |
| Stream to distinguish the POOL Stream instances. More... | |
Public Member Functions | |
| DeclareInterfaceID (IPoolSvc, 1, 0) | |
| Declare interface ID. | |
| virtual Token * | registerForWrite (const Placement *placement, const void *obj, const RootType &classDesc)=0 |
| virtual void | setObjPtr (void *&obj, const Token *token)=0 |
| virtual unsigned int | getOutputContext (const std::string &label)=0 |
| virtual unsigned int | getInputContext (const std::string &label, unsigned int maxFile=0)=0 |
| virtual std::map< std::string, unsigned int > | getInputContextMap () const =0 |
| virtual unsigned int | getInputContextMapSize () const =0 |
| virtual pool::ISession * | getInputContextSession (unsigned int contextId) const =0 |
| virtual void | setShareMode (bool shareCat)=0 |
| virtual void | startCatalog ()=0 |
| virtual void | commitCatalog ()=0 |
| virtual void | lookupBestPfn (const std::string &token, std::string &pfn, std::string &type) const =0 |
| virtual void | renamePfn (const std::string &pf, const std::string &newpf)=0 |
| virtual StatusCode | connectCollection (const std::string &connection, const std::string &collectionName, const pool::DbType &collectionType, unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| virtual StatusCode | checkCollection (const std::string &connection, unsigned int contextId, bool noContainer) const =0 |
| virtual Token * | getToken (const std::string &connection, const std::string &collection, const unsigned long ientry) const =0 |
| virtual StatusCode | connect (Io::IoFlag type, unsigned int contextId=IPoolSvc::kInputStream)=0 |
| Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmode). | |
| virtual StatusCode | commit (unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| Commit data for a given stream and flush buffer. | |
| virtual StatusCode | commitAndHold (unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| Commit data for a given stream and hold buffer. | |
| virtual StatusCode | disconnect (unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| Disconnect PersistencySvc associated with a stream. | |
| virtual StatusCode | disconnectDb (const std::string &connection, unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| Disconnect single Database. | |
| virtual StatusCode | getAttribute (const std::string &optName, std::string &data, long tech, unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| Get POOL attributes - domain. | |
| virtual StatusCode | getAttribute (const std::string &optName, std::string &data, long tech, const std::string &dbName, const std::string &contName="", unsigned int contextId=IPoolSvc::kInputStream) const =0 |
| Get POOL attributes - db/file, container/collection. | |
| virtual StatusCode | setAttribute (const std::string &optName, const std::string &data, long tech, unsigned int contextId=IPoolSvc::kOutputStream) const =0 |
| Set POOL attributes - domain. | |
| virtual StatusCode | setAttribute (const std::string &optName, const std::string &data, long tech, const std::string &dbName, const std::string &contName="", unsigned int contextId=IPoolSvc::kOutputStream) const =0 |
| Set POOL attributes - db/file, container/collection. | |
This class provides the interface to the APR persistency software.
Definition at line 35 of file IPoolSvc.h.
| enum IPoolSvc::PoolStream |
Stream to distinguish the POOL Stream instances.
| Enumerator | |
|---|---|
| kInputStream | |
| kOutputStream | |
Definition at line 39 of file IPoolSvc.h.
|
pure virtual |
| connection | [IN] string containing the connection. |
| contextId | [IN] id for PoolSvc persistency service to use for input. |
| noContainer | [IN] if no collection was found check whether file exists or had no events |
|
pure virtual |
Commit data for a given stream and flush buffer.
| stream | [IN] poolStream to be commited. |
|
pure virtual |
Commit data for a given stream and hold buffer.
| stream | [IN] poolStream to be commited. |
|
pure virtual |
|
pure virtual |
Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmode).
|
pure virtual |
| connection | [IN] string containing the connection. |
| collectionName | [IN] string containing the persistent name of the collection. |
| collectionType | [IN] string containing the collection type. |
| contextId | [IN] id for PoolSvc persistency service to use for input. |
| IPoolSvc::DeclareInterfaceID | ( | IPoolSvc | , |
| 1 | , | ||
| 0 | ) |
Declare interface ID.
|
pure virtual |
Disconnect PersistencySvc associated with a stream.
| stream | [IN] poolStream to be disconnected. |
|
pure virtual |
Disconnect single Database.
| connection | [IN] connection string for Database to be disconnected. |
| contextId | [IN] context id of database to be disconnected. |
|
pure virtual |
Get POOL attributes - db/file, container/collection.
|
pure virtual |
Get POOL attributes - domain.
|
pure virtual |
| label | [IN] string label to name new context and allow sharing (returns existing contextId) |
| maxFile | [IN] maximum number of open input files. |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| label | [IN] string label to name new context and allow sharing (returns existing contextId) |
|
pure virtual |
| connection | [IN] string containing the connection/file name. |
| collection | [IN] string containing the persistent name of the collection. |
| ientry | [IN] entry number for the token to be returned |
|
pure virtual |
| token | [IN] filename/token string to be translated |
| pfn | [OUT] string PFN of database |
| type | [OUT] string filetype of database |
|
pure virtual |
| placement | [IN] pointer to the placement hint. |
| obj | [IN] pointer to the Data Object to be written to Pool. |
| classDesc | [IN] pointer to the Seal class description for the Data Object. |
| pf | [IN] filename to be renamed |
| newpf | [IN] new filename |
|
pure virtual |
|
pure virtual |
| obj | [OUT] pointer to the Data Object. |
| token | [IN] token of the Data Object for which a Pool Ref is filled. |
|
pure virtual |
| shareCat | [IN] bool to share the file catalog. |
|
pure virtual |