 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_COLLECTIONSERVICE_H
6 #define COLLECTIONBASE_COLLECTIONSERVICE_H
49 bool overwrite =
false );
62 bool overwrite =
false,
63 const std::string & logicalName =
"" );
67 const std::string &
type,
68 const std::string & connection =
"",
69 bool readOnly =
true)
const
71 return handle(
name,
type, connection, readOnly, 0);
87 const std::string &
type,
88 const std::string & connection =
"",
89 const std::string & logicalName =
"" );
101 bool overwrite =
false,
const std::string & logicalName =
"" );
117 const std::string &
type,
118 const std::string & connection =
"",
119 bool readOnly =
true,
144 bool readOnly =
true );
156 bool readOnly =
true );
virtual ICollection * handle(const std::string &name, const std::string &type, const std::string &connection="", bool readOnly=true, ISession *session=0) const
Retrieves a handle to an existing collection or collection fragment for read or update transactions,...
virtual ICollection * create(const ICollectionDescription &description, bool overwrite=false)
Creates or overwrites a collection or collection fragment, given a description of its properties.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
virtual bool setWriteCatalog(const std::string &name)
Sets the name of the catalog in which to register new collections.
virtual bool registerExisting(ICollection *collection, bool overwrite=false, const std::string &logicalName="")
Registers an existing collection in a collection catalog managed by the collection service.
OpenMode
Enumeration of the possible open modes of the collection.
virtual ICollection * createAndRegister(const ICollectionDescription &description, bool overwrite=false, const std::string &logicalName="")
Creates or overwrites a collection, given a description of its properties, and registers it in a coll...
virtual bool registerExisting(const std::string &name, const std::string &type, const std::string &connection="", const std::string &logicalName="")
Registers an existing collection in a collection catalog managed by the collection service,...
virtual bool setDefaultCatalog()
Sets default values for the write and read collection catalogs.
CollectionService()
Constructor:
virtual IFileCatalog * getCatalog()
Returns the collection catalog used by the service.
virtual bool addReadCatalog(const std::string &name)
Adds a catalog to the list of catalogs in which to search for registered collections.
virtual ICollection * openWithPhysicalName(const std::string &physicalName, pool::ICollection::OpenMode openMode=pool::ICollection::READ)
Retrieves a handle to an existing collection for read or update transactions, given the physical name...
virtual ICollection * openWithLogicalName(const std::string &logicalName, bool readOnly=true)
Retrieves a handle to an existing collection for read or update transactions, given the logical name ...
virtual ICollection * open(const std::string &name, const std::string &type, const std::string &connection="", bool readOnly=true) const
virtual ~CollectionService()
Default destructor.
virtual void setCatalog(IFileCatalog *collCat)
Forces the service to use externally provided file catalogs The catalogs are not deleted by the servi...
Define macros for attributes used to control the static checker.
virtual ICollection * openWithGuid(const std::string &guid, bool readOnly=true)
Retrieves a handle to an existing collection for read or update transactions, given the globally uniq...
std::string description
glabal timer - how long have I taken so far?