ATLAS Offline Software
IGeometryDBSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DetectorDescription_IGeometryDBSvc_h
6 #define DetectorDescription_IGeometryDBSvc_h
7 
8 #include "GaudiKernel/IInterface.h"
9 #include <string>
11 
12 
20 class IGeometryDBSvc: virtual public IInterface
21 {
22 public:
24 
25  virtual ~IGeometryDBSvc(){}
26 
28  virtual double getDouble(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
29  virtual int getInt(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
30  virtual std::string getString(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
31  virtual bool testField(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
32  virtual bool testFieldTxt(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
33  virtual unsigned int getTableSize(IRDBRecordset_ptr recordSet) const=0;
34 
38  virtual double getDouble(const std::string & recordSetName, const std::string & name, int index=0) const=0;
39  virtual int getInt(const std::string & recordSetName, const std::string & name, int index=0) const=0;
40  virtual std::string getString(const std::string & recordSetName, const std::string & name, int index=0) const=0;
41  virtual bool testField(const std::string & recordSetName, const std::string & name, int index=0) const=0;
42  virtual unsigned int getTableSize(const std::string & recordSetName) const=0;
43 
45  virtual void printParameters(const std::string & section = "") const=0;
46 
48  virtual void printNotUsed(const std::string & section = "") const=0;
49 };
50 
51 #endif // DetectorDescription_IGeometryDBSvc_h
IGeometryDBSvc::printParameters
virtual void printParameters(const std::string &section="") const =0
Print paramaters read in from text file. If section is supplied only consider the parameters in that ...
IGeometryDBSvc::~IGeometryDBSvc
virtual ~IGeometryDBSvc()
Definition: IGeometryDBSvc.h:25
index
Definition: index.py:1
IGeometryDBSvc::testFieldTxt
virtual bool testFieldTxt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
IGeometryDBSvc::getTableSize
virtual unsigned int getTableSize(IRDBRecordset_ptr recordSet) const =0
IGeometryDBSvc::getInt
virtual int getInt(const std::string &recordSetName, const std::string &name, int index=0) const =0
IGeometryDBSvc::testField
virtual bool testField(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
IGeometryDBSvc::getTableSize
virtual unsigned int getTableSize(const std::string &recordSetName) const =0
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
IGeometryDBSvc::DeclareInterfaceID
DeclareInterfaceID(IGeometryDBSvc, 1, 0)
IGeometryDBSvc::getDouble
virtual double getDouble(const std::string &recordSetName, const std::string &name, int index=0) const =0
The following methods look only in the text file and their intention is for use during development be...
IGeometryDBSvc
Definition: IGeometryDBSvc.h:21
IGeometryDBSvc::testField
virtual bool testField(const std::string &recordSetName, const std::string &name, int index=0) const =0
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition: IRDBAccessSvc.h:25
IGeometryDBSvc::getDouble
virtual double getDouble(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
The following methods will first look in the text file if provided and then look in the database.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IGeometryDBSvc::getInt
virtual int getInt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
IGeometryDBSvc::getString
virtual std::string getString(const std::string &recordSetName, const std::string &name, int index=0) const =0
IGeometryDBSvc::getString
virtual std::string getString(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
IGeometryDBSvc::printNotUsed
virtual void printNotUsed(const std::string &section="") const =0
Print paramaters from text file which are not used. If section is supplied only consider the paramete...
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22