ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
EventSelectorAthenaPool
src
PoolCollectionConverter.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 POOLCOLLECTIONCONVERTER_H
6
#define POOLCOLLECTIONCONVERTER_H
7
12
13
#include <string>
14
#include <memory>
15
16
// Forward declarations
17
class
IPoolSvc
;
18
namespace
pool
{
19
class
ICollection
;
20
class
ICollectionCursor
;
21
class
DbType
;
22
}
23
class
StatusCode
;
24
28
class
PoolCollectionConverter
{
29
30
public
:
36
PoolCollectionConverter
(
const
std::string& collectionType,
37
const
std::string& inputCollection,
38
unsigned
int
contextId,
39
const
IPoolSvc
* svc);
40
42
virtual
~PoolCollectionConverter
();
43
45
StatusCode
initialize
();
46
52
pool::ICollection
*
createCollection
(
const
std::string& connection,
53
const
std::string& collectionName,
54
const
pool::DbType
& collectionType,
55
unsigned
int
contextId)
const
;
56
58
StatusCode
disconnectDb
();
59
61
StatusCode
isValid
()
const
;
62
64
std::unique_ptr<pool::ICollectionCursor>
selectAll
();
65
66
private
:
// data
67
std::string
m_collectionType
;
68
std::string
m_inputCollection
;
69
unsigned
int
m_contextId
;
70
const
IPoolSvc
*
m_poolSvc
;
71
pool::ICollection
*
m_poolCollection
;
72
73
private
:
// hide copy and assignment
74
PoolCollectionConverter
(
const
PoolCollectionConverter
& rhs);
75
PoolCollectionConverter
&
operator=
(
const
PoolCollectionConverter
& rhs);
76
};
77
#endif
IPoolSvc
This class provides the interface to the APR persistency software.
Definition
IPoolSvc.h:35
PoolCollectionConverter::selectAll
std::unique_ptr< pool::ICollectionCursor > selectAll()
Definition
PoolCollectionConverter.cxx:109
PoolCollectionConverter::m_inputCollection
std::string m_inputCollection
Definition
PoolCollectionConverter.h:68
PoolCollectionConverter::disconnectDb
StatusCode disconnectDb()
Disconnect Database.
Definition
PoolCollectionConverter.cxx:98
PoolCollectionConverter::m_contextId
unsigned int m_contextId
Definition
PoolCollectionConverter.h:69
PoolCollectionConverter::m_poolCollection
pool::ICollection * m_poolCollection
Definition
PoolCollectionConverter.h:71
PoolCollectionConverter::isValid
StatusCode isValid() const
Check whether has valid pool::ICollection*.
Definition
PoolCollectionConverter.cxx:105
PoolCollectionConverter::m_poolSvc
const IPoolSvc * m_poolSvc
Definition
PoolCollectionConverter.h:70
PoolCollectionConverter::PoolCollectionConverter
PoolCollectionConverter(const std::string &collectionType, const std::string &inputCollection, unsigned int contextId, const IPoolSvc *svc)
Constructor.
Definition
PoolCollectionConverter.cxx:30
PoolCollectionConverter::PoolCollectionConverter
PoolCollectionConverter(const PoolCollectionConverter &rhs)
PoolCollectionConverter::createCollection
pool::ICollection * createCollection(const std::string &connection, const std::string &collectionName, const pool::DbType &collectionType, unsigned int contextId) const
Definition
PoolCollectionConverter.cxx:81
PoolCollectionConverter::operator=
PoolCollectionConverter & operator=(const PoolCollectionConverter &rhs)
PoolCollectionConverter::~PoolCollectionConverter
virtual ~PoolCollectionConverter()
Destructor.
Definition
PoolCollectionConverter.cxx:41
PoolCollectionConverter::initialize
StatusCode initialize()
Required by all Gaudi Services.
Definition
PoolCollectionConverter.cxx:48
PoolCollectionConverter::m_collectionType
std::string m_collectionType
Definition
PoolCollectionConverter.h:67
pool::DbType
Definition
DbType.h:30
pool::ICollectionCursor
An interface used to navigate the result of a query on a collection.
Definition
ICollectionCursor.h:22
pool::ICollection
An interface to a storage technology specific collection of event references and attributes.
Definition
ICollection.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
pool
Framework include files.
Definition
libname.h:15
Generated on
for ATLAS Offline Software by
1.17.0