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
}
22
class
StatusCode
;
23
27
class
PoolCollectionConverter
{
28
29
public
:
33
PoolCollectionConverter
(
const
std::string& inputCollection,
34
unsigned
int
contextId,
35
const
IPoolSvc
* svc);
36
38
virtual
~PoolCollectionConverter
();
39
41
StatusCode
initialize
();
42
44
StatusCode
disconnectDb
();
45
47
StatusCode
isValid
()
const
;
48
50
std::unique_ptr<pool::ICollectionCursor>
selectAll
();
51
52
const
std::string&
lastError
()
const
{
return
m_lastError
; }
53
54
private
:
// data
55
std::string
m_inputCollection
;
56
unsigned
int
m_contextId
;
57
const
IPoolSvc
*
m_poolSvc
;
58
pool::ICollection
*
m_poolCollection
;
59
// Last error message from Collection open() (if any)
60
std::string
m_lastError
;
61
62
private
:
// hide copy and assignment
63
PoolCollectionConverter
(
const
PoolCollectionConverter
& rhs);
64
PoolCollectionConverter
&
operator=
(
const
PoolCollectionConverter
& rhs);
65
};
66
#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:78
PoolCollectionConverter::m_lastError
std::string m_lastError
Definition
PoolCollectionConverter.h:60
PoolCollectionConverter::PoolCollectionConverter
PoolCollectionConverter(const std::string &inputCollection, unsigned int contextId, const IPoolSvc *svc)
Constructor.
Definition
PoolCollectionConverter.cxx:28
PoolCollectionConverter::m_inputCollection
std::string m_inputCollection
Definition
PoolCollectionConverter.h:55
PoolCollectionConverter::disconnectDb
StatusCode disconnectDb()
Disconnect Database.
Definition
PoolCollectionConverter.cxx:67
PoolCollectionConverter::m_contextId
unsigned int m_contextId
Definition
PoolCollectionConverter.h:56
PoolCollectionConverter::m_poolCollection
pool::ICollection * m_poolCollection
Definition
PoolCollectionConverter.h:58
PoolCollectionConverter::isValid
StatusCode isValid() const
Check whether has valid pool::ICollection*.
Definition
PoolCollectionConverter.cxx:74
PoolCollectionConverter::m_poolSvc
const IPoolSvc * m_poolSvc
Definition
PoolCollectionConverter.h:57
PoolCollectionConverter::lastError
const std::string & lastError() const
Definition
PoolCollectionConverter.h:52
PoolCollectionConverter::PoolCollectionConverter
PoolCollectionConverter(const PoolCollectionConverter &rhs)
PoolCollectionConverter::operator=
PoolCollectionConverter & operator=(const PoolCollectionConverter &rhs)
PoolCollectionConverter::~PoolCollectionConverter
virtual ~PoolCollectionConverter()
Destructor.
Definition
PoolCollectionConverter.cxx:38
PoolCollectionConverter::initialize
StatusCode initialize()
Required by all Gaudi Services.
Definition
PoolCollectionConverter.cxx:45
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