ATLAS Offline Software
IGeometryDBSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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:
23  virtual ~IGeometryDBSvc(){}
24 
26  virtual double getDouble(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
27  virtual int getInt(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
28  virtual std::string getString(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
29  virtual bool testField(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
30  virtual bool testFieldTxt(IRDBRecordset_ptr recordSet, const std::string & name, int index=0) const=0;
31  virtual unsigned int getTableSize(IRDBRecordset_ptr recordSet) const=0;
32 
36  virtual double getDouble(const std::string & recordSetName, const std::string & name, int index=0) const=0;
37  virtual int getInt(const std::string & recordSetName, const std::string & name, int index=0) const=0;
38  virtual std::string getString(const std::string & recordSetName, const std::string & name, int index=0) const=0;
39  virtual bool testField(const std::string & recordSetName, const std::string & name, int index=0) const=0;
40  virtual unsigned int getTableSize(const std::string & recordSetName) const=0;
41 
43  virtual void printParameters(const std::string & section = "") const=0;
44 
46  virtual void printNotUsed(const std::string & section = "") const=0;
47 
48  static const InterfaceID & interfaceID();
49 
50 };
51 
52 inline const InterfaceID & IGeometryDBSvc::interfaceID(){
53  static const InterfaceID IID_IGeometryDBSvc("IGeometryDBSvc",1,0);
54  return IID_IGeometryDBSvc;
55 }
56 
57 #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:23
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::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::interfaceID
static const InterfaceID & interfaceID()
reimplemented from IInterface
Definition: IGeometryDBSvc.h:52
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:195
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