![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef GeometryDBSvc_h
6 #define GeometryDBSvc_h
10 #include "GaudiKernel/IInterface.h"
44 virtual double getDouble(
const std::string & recordSetName,
const std::string &
name,
int index=0)
const;
45 virtual int getInt(
const std::string & recordSetName,
const std::string &
name,
int index=0)
const;
46 virtual std::string
getString(
const std::string & recordSetName,
const std::string &
name,
int index=0)
const;
47 virtual bool testField(
const std::string & recordSetName,
const std::string &
name,
int index=0)
const;
48 virtual unsigned int getTableSize(
const std::string & recordSetName)
const;
60 std::string
parameterKey(
const std::string & recordSetName,
const std::string &
name,
int index)
const;
61 bool getValue(
const std::string & recordSetName,
const std::string &
name,
int index, std::string &
var)
const;
62 bool getValue(
const std::string & recordSetName,
const std::string &
name,
int index,
double &
var)
const;
63 bool getValue(
const std::string & recordSetName,
const std::string &
name,
int index,
int &
var)
const;
virtual bool testField(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const
virtual std::string getString(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const
virtual void printParameters(const std::string §ion="") const
Print paramaters read in from text file. If section is supplied only consider the parameters in that ...
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
bool getTableSizeFromTextFile(const std::string &recordSetName, int &var) const
virtual StatusCode finalize()
Service finalize.
virtual StatusCode initialize()
Service init.
TextFileDBReader * m_textParameters
virtual bool testFieldTxt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const
virtual void printNotUsed(const std::string §ion="") const
Print paramaters from text file which are not used. If section is supplied only consider the paramete...
bool getValue(const std::string &recordSetName, const std::string &name, int index, std::string &var) const
virtual double getDouble(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const
The following methods will first look in the text file if provided and then look in the database.
Class to read in a text file and allow easy retrieval of parameters.
IRDBRecordset is an abstract interface to the RDB Recordsets, which represent a snapshot of HVS-tagge...
std::string parameterKey(const std::string &recordSetName, const std::string &name, int index) const
virtual int getInt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const
static const InterfaceID & interfaceID()
::StatusCode StatusCode
StatusCode definition for legacy code.
void setParameterFileName(const std::string &filename)
static const InterfaceID & interfaceID()
reimplemented from IInterface
GeometryDBSvc(const std::string &name, ISvcLocator *sl)
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
std::string m_textFileName
std::vector< std::string > m_sections
virtual unsigned int getTableSize(IRDBRecordset_ptr recordSet) const