![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
29 return StatusCode::SUCCESS;
34 if (IID_IRDBAccessSvc == riid) {
38 return AthService::queryInterface(riid, ppvInterface);
42 return StatusCode::SUCCESS;
49 int res = sqlite3_open(connName.c_str(), &
m_db);
50 if (
res != SQLITE_OK) {
78 ,
const std::string& )
84 ATH_MSG_ERROR(
"Connection to the SQLite database not open. Returning empty recordset");
91 return itRecordset->second;
102 ,
const std::string&
tag
103 ,
const std::string& tag2node
104 ,
const std::string& connName)
109 return std::unique_ptr<IRDBQuery>();
113 ,
const std::string& parentTag
114 ,
const std::string& parentNode
115 ,
const std::string& )
117 ATH_MSG_DEBUG(
"getChildTag for " << childNode <<
" " << parentTag <<
" " << parentNode);
119 return std::string();
123 ,
const std::string&
tag
124 ,
const std::string& )
std::string getChildTag(const std::string &childNode, const std::string &, const std::string &, const std::string &) override
Dummy overrider of the virtual function.
Declaration of the SqliteRecordset class.
StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface) override
void getTagDetails(RDBTagDetails &tagDetails, const std::string &tag, const std::string &) override
Dummy overrider of the virtual function.
Declaration of SqliteReadSvc class.
void getData(sqlite3 *db, const std::string &nodeName)
Constructs SQL query and retrieves data from the DB.
IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &, const std::string &, const std::string &) override
Provides access to the Recordset object containing HVS-tagged data.
SqliteReadSvc(const std::string &name, ISvcLocator *svc)
Standard Service Constructor.
bool disconnect(const std::string &) override
Dummy overrider of the virtual function.
IRDBAccessSvc is an abstract interface to the athena service that provides the following functionalit...
::StatusCode StatusCode
StatusCode definition for legacy code.
std::pair< std::vector< unsigned int >, bool > res
AthROOTErrorHandlerSvc * svc
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
std::mutex m_recordsetMutex
RecordsetPtrMap m_recordsets
bool connect(const std::string &connName) override
Open the SQLite database This method has no effect if the connection has already been opened.
coral::AttributeList RDBTagDetails
#define ATH_MSG_WARNING(x)
SqliteRecordset implements IRDBRecordset interface. It is a container of records read from an SQLite ...
bool shutdown(const std::string &) override
Closes the database connection.
std::unique_ptr< IRDBQuery > getQuery(const std::string &node, const std::string &, const std::string &, const std::string &) override
Dummy overrider of the virtual function (for now)
StatusCode finalize() override
std::mutex m_sessionMutex