ATLAS Offline Software
Loading...
Searching...
No Matches
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
19
20class IGeometryDBSvc: virtual public IInterface
21{
22public:
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
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
void section(const std::string &sec)
Interface class to access geometry database with possibility to override parameters from a text file.
virtual bool testField(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
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 ...
virtual std::string getString(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
virtual std::string getString(const std::string &recordSetName, const std::string &name, int index=0) const =0
virtual unsigned int getTableSize(const std::string &recordSetName) const =0
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...
virtual int getInt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
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.
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...
virtual unsigned int getTableSize(IRDBRecordset_ptr recordSet) const =0
virtual int getInt(const std::string &recordSetName, const std::string &name, int index=0) const =0
virtual bool testField(const std::string &recordSetName, const std::string &name, int index=0) const =0
virtual bool testFieldTxt(IRDBRecordset_ptr recordSet, const std::string &name, int index=0) const =0
virtual ~IGeometryDBSvc()
DeclareInterfaceID(IGeometryDBSvc, 1, 0)
Definition index.py:1