ATLAS Offline Software
Loading...
Searching...
No Matches
CollectionService.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COLLECTIONSVC_COLLECTIONSERVICE_H
6#define COLLECTIONSVC_COLLECTIONSERVICE_H
7
8#include "ICollection.h"
9
10#include "StorageSvc/DbType.h"
11
13
14
15namespace pool {
16
18 class ISession;
19
29 {
30
31 public:
37 CollectionService() = default;
38
39
41 virtual ~CollectionService() = default;
42
50
51
64 virtual ICollection* open( const std::string & name,
65 const DbType& type,
66 const std::string & connection = "",
67 ISession* session = 0 ) const;
68
72 static void setMessageSvcQuiet( bool quiet=true );
73
75 ICollection::OpenMode openMode,
76 ISession* session = 0 ) const;
77
78 };
79}
80
81#endif
Define macros for attributes used to control the static checker.
An implementation used to define the properties of a collection to be constructed and to retrieve the...
virtual ~CollectionService()=default
Default destructor.
static void setMessageSvcQuiet(bool quiet=true)
suppress (or enable) warning about a missing MessageSvc (logging)
virtual ICollection * create(const CollectionDescription &description)
Creates or overwrites a collection or collection fragment, given a description of its properties.
pool::ICollection * plugin(const CollectionDescription &description, ICollection::OpenMode openMode, ISession *session=0) const
CollectionService()=default
Constructor:
virtual ICollection * open(const std::string &name, const DbType &type, const std::string &connection="", ISession *session=0) const
Retrieves a handle to an existing collection or collection fragment for read or update transactions,...
An interface to a storage technology specific collection of event references and attributes.
Definition ICollection.h:23
OpenMode
Enumeration of the possible open modes of the collection.
Definition ICollection.h:26
ISession is the interface class for user (macroscopic) sessions Every transaction and connection to a...
Definition ISession.h:32
std::string description
glabal timer - how long have I taken so far?
Definition hcg.cxx:91
pool namespace
Definition libname.h:15