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}
22class StatusCode;
23
28
29public:
33 PoolCollectionConverter( const std::string& inputCollection,
34 unsigned int contextId,
35 const IPoolSvc* svc);
36
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
54private: // data
55 std::string m_inputCollection;
56 unsigned int m_contextId;
59 // Last error message from Collection open() (if any)
60 std::string m_lastError;
61
62private: // hide copy and assignment
65};
66#endif
This class provides the interface to the APR persistency software.
Definition IPoolSvc.h:35
std::unique_ptr< pool::ICollectionCursor > selectAll()
PoolCollectionConverter(const std::string &inputCollection, unsigned int contextId, const IPoolSvc *svc)
Constructor.
StatusCode disconnectDb()
Disconnect Database.
pool::ICollection * m_poolCollection
StatusCode isValid() const
Check whether has valid pool::ICollection*.
const std::string & lastError() const
PoolCollectionConverter(const PoolCollectionConverter &rhs)
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