ATLAS Offline Software
PoolCollectionConverter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef POOLCOLLECTIONCONVERTER_H
6 #define POOLCOLLECTIONCONVERTER_H
7 
13 #include <string>
14 
15 // Forward declarations
16 class IPoolSvc;
17 namespace pool {
18  class ICollection;
19  class ICollectionQuery;
20  class ICollectionCursor;
21 }
22 class StatusCode;
23 
28 
29 public:
37  PoolCollectionConverter(const std::string& collectionType,
38  const std::string& inputCollection,
39  unsigned int contextId,
40  const std::string& query,
41  const IPoolSvc* svc);
42 
44  virtual ~PoolCollectionConverter();
45 
48 
51 
53  StatusCode isValid() const;
54 
57 
61 
64  std::string retrieveToken(const pool::ICollectionCursor* cursor, const std::string& refName) const;
65 
66 private: // data
67  std::string m_collectionType;
68  std::string m_connection;
69  std::string m_inputCollection;
70  unsigned int m_contextId;
71  std::string m_query;
75  std::string m_inputContainer;
76 
77 private: // hide copy and assignment
80 };
81 #endif
IPoolSvc
This class provides the interface to the LCG POOL persistency software.
Definition: IPoolSvc.h:35
pool::ICollectionQuery
Definition: ICollectionQuery.h:27
PoolCollectionConverter::m_contextId
unsigned int m_contextId
Definition: PoolCollectionConverter.h:70
PoolCollectionConverter::PoolCollectionConverter
PoolCollectionConverter(const std::string &collectionType, const std::string &inputCollection, unsigned int contextId, const std::string &query, const IPoolSvc *svc)
Constructor.
Definition: PoolCollectionConverter.cxx:31
PoolCollectionConverter::PoolCollectionConverter
PoolCollectionConverter(const PoolCollectionConverter &rhs)
PoolCollectionConverter
This class provides an interface to POOL collections.
Definition: PoolCollectionConverter.h:27
PoolCollectionConverter::m_connection
std::string m_connection
Definition: PoolCollectionConverter.h:68
PoolCollectionConverter::executeQuery
pool::ICollectionCursor & executeQuery()
Query the collection.
Definition: PoolCollectionConverter.cxx:135
pool
pool namespace
Definition: libname.h:15
PoolCollectionConverter::selectAll
pool::ICollectionCursor & selectAll()
Definition: PoolCollectionConverter.cxx:127
PoolCollectionConverter::m_collectionType
std::string m_collectionType
Definition: PoolCollectionConverter.h:67
PoolCollectionConverter::operator=
PoolCollectionConverter & operator=(const PoolCollectionConverter &rhs)
PoolCollectionConverter::m_inputCollection
std::string m_inputCollection
Definition: PoolCollectionConverter.h:69
PoolCollectionConverter::m_inputContainer
std::string m_inputContainer
Definition: PoolCollectionConverter.h:75
PoolCollectionConverter::isValid
StatusCode isValid() const
Check whether has valid pool::ICollection*.
Definition: PoolCollectionConverter.cxx:123
query
Definition: query.py:1
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PoolCollectionConverter::m_poolSvc
const IPoolSvc * m_poolSvc
Definition: PoolCollectionConverter.h:72
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
pool::ICollectionCursor
Definition: ICollectionCursor.h:21
PoolCollectionConverter::retrieveToken
std::string retrieveToken(const pool::ICollectionCursor *cursor, const std::string &refName) const
Definition: PoolCollectionConverter.cxx:145
PoolCollectionConverter::m_query
std::string m_query
Definition: PoolCollectionConverter.h:71
PoolCollectionConverter::m_collectionQuery
pool::ICollectionQuery * m_collectionQuery
Definition: PoolCollectionConverter.h:74
PoolCollectionConverter::disconnectDb
StatusCode disconnectDb()
Disconnect Database.
Definition: PoolCollectionConverter.cxx:113
PoolCollectionConverter::initialize
StatusCode initialize()
Required by all Gaudi Services.
Definition: PoolCollectionConverter.cxx:69
PoolCollectionConverter::m_poolCollection
pool::ICollection * m_poolCollection
Definition: PoolCollectionConverter.h:73
query_example.cursor
cursor
Definition: query_example.py:21
PoolCollectionConverter::~PoolCollectionConverter
virtual ~PoolCollectionConverter()
Destructor.
Definition: PoolCollectionConverter.cxx:61
pool::ICollection
Definition: ICollection.h:24