ATLAS Offline Software
Loading...
Searching...
No Matches
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
17class IPoolSvc;
18namespace pool {
19 class ICollection;
21 class DbType;
22}
23class StatusCode;
24
29
30public:
36 PoolCollectionConverter(const std::string& collectionType,
37 const std::string& inputCollection,
38 unsigned int contextId,
39 const IPoolSvc* svc);
40
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
66private: // data
67 std::string m_collectionType;
68 std::string m_inputCollection;
69 unsigned int m_contextId;
72
73private: // hide copy and assignment
76};
77#endif
This class provides the interface to the APR persistency software.
Definition IPoolSvc.h:35
std::unique_ptr< pool::ICollectionCursor > selectAll()
StatusCode disconnectDb()
Disconnect Database.
pool::ICollection * m_poolCollection
StatusCode isValid() const
Check whether has valid pool::ICollection*.
PoolCollectionConverter(const std::string &collectionType, const std::string &inputCollection, unsigned int contextId, const IPoolSvc *svc)
Constructor.
PoolCollectionConverter(const PoolCollectionConverter &rhs)
pool::ICollection * createCollection(const std::string &connection, const std::string &collectionName, const pool::DbType &collectionType, unsigned int contextId) const
PoolCollectionConverter & operator=(const PoolCollectionConverter &rhs)
virtual ~PoolCollectionConverter()
Destructor.
StatusCode initialize()
Required by all Gaudi Services.
An interface used to navigate the result of a query on a collection.
An interface to a storage technology specific collection of event references and attributes.
Definition ICollection.h:24
::StatusCode StatusCode
StatusCode definition for legacy code.
Framework include files.
Definition libname.h:15