#include <DatabaseAccessTool.h>
Definition at line 16 of file DatabaseAccessTool.h.
◆ DatabaseAccessTool() [1/2]
DatabaseAccessTool::DatabaseAccessTool |
( |
| ) |
|
Definition at line 25 of file DatabaseAccessTool.cxx.
26 :
m_cw(
new Clockwork())
29 ISvcLocator *svcLocator=Gaudi::svcLocator();
30 if (svcLocator->service (
"GeoModelSvc",geoModel)!=StatusCode::SUCCESS) {
31 throw std::runtime_error (
"Cannot locate GeoModelSvc!!");
34 if (svcLocator->service(
"RDBAccessSvc",
m_cw->
pAccessSvc)!=StatusCode::SUCCESS) {
35 throw std::runtime_error (
"Cannot locate RDBAccessSvc!!");
◆ ~DatabaseAccessTool()
DatabaseAccessTool::~DatabaseAccessTool |
( |
| ) |
|
◆ DatabaseAccessTool() [2/2]
◆ getDouble()
double DatabaseAccessTool::getDouble |
( |
const std::string & |
TableName, |
|
|
const std::string & |
FallbackVersion, |
|
|
const std::string & |
ColumnName |
|
) |
| const |
Definition at line 53 of file DatabaseAccessTool.cxx.
63 throw std::runtime_error((std::string(
"Cannot find the Table: ") + TableName).c_str());
66 double retval = (*rec)[0]->getDouble(ColumnName);
◆ operator=()
◆ m_cw
The documentation for this class was generated from the following files:
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.