ATLAS Offline Software
ForwardDetectors
ALFA
ALFA_Geometry
ALFA_Geometry
ALFA_ConfigParams.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 AlfaConfigParams_h
6
#define AlfaConfigParams_h 1
7
8
#include <iostream>
9
#include <string>
10
#include <map>
11
12
//using namespace std;
13
14
//typedef basic_string<char> tstring;
15
17
18
typedef
std::map<std::string, std::string, std::less<std::string> >
MAPSTR2STR
;
19
20
class
ALFA_ConfigParams
21
{
22
public
:
23
ALFA_ConfigParams
();
24
virtual
~ALFA_ConfigParams
();
25
26
private
:
27
bool
m_bIsValid
;
28
std::string
m_strSection
;
29
MAPSTR2STR
m_mapParams
;
30
31
public
:
32
bool
IsKey
(
const
char
* szKey)
const
;
33
const
char
*
GetParameter
(
const
char
* szKey)
const
;
34
const
char
*
GetSectionName
()
const
{
return
m_strSection
.c_str(); }
35
int
GetParamsCnt
()
const
{
return
m_mapParams
.size(); }
36
int
Init
(
const
char
* szFile,
const
char
* szSection);
37
void
UnInitialize
();
38
void
GetMap
(
MAPSTR2STR
& mapParams)
const
{ mapParams=
m_mapParams
; }
39
};
40
41
#endif // AlfaConfigParams_h
ALFA_ConfigParams::Init
int Init(const char *szFile, const char *szSection)
Definition:
ALFA_ConfigParams.cxx:36
ALFA_ConfigParams::GetParameter
const char * GetParameter(const char *szKey) const
Definition:
ALFA_ConfigParams.cxx:82
ALFA_ConfigParams
Definition:
ALFA_ConfigParams.h:21
ALFA_ConfigParams::m_mapParams
MAPSTR2STR m_mapParams
Definition:
ALFA_ConfigParams.h:29
ALFA_ConfigParams::GetSectionName
const char * GetSectionName() const
Definition:
ALFA_ConfigParams.h:34
ALFA_ConfigParams::IsKey
bool IsKey(const char *szKey) const
Definition:
ALFA_ConfigParams.cxx:98
ALFA_ConfigParams::~ALFA_ConfigParams
virtual ~ALFA_ConfigParams()
Definition:
ALFA_ConfigParams.cxx:24
ALFA_ConfigParams::UnInitialize
void UnInitialize()
Definition:
ALFA_ConfigParams.cxx:28
ALFA_ConfigParams::m_bIsValid
bool m_bIsValid
Definition:
ALFA_ConfigParams.h:27
ALFA_ConfigParams::GetMap
void GetMap(MAPSTR2STR &mapParams) const
Definition:
ALFA_ConfigParams.h:38
ALFA_ConfigParams::GetParamsCnt
int GetParamsCnt() const
Definition:
ALFA_ConfigParams.h:35
ALFA_ConfigParams::ALFA_ConfigParams
ALFA_ConfigParams()
Definition:
ALFA_ConfigParams.cxx:18
ALFA_ConfigParams::m_strSection
std::string m_strSection
Definition:
ALFA_ConfigParams.h:28
MAPSTR2STR
std::map< std::string, std::string, std::less< std::string > > MAPSTR2STR
Definition:
ALFA_ConfigParams.h:18
Generated on Sun Dec 22 2024 21:06:45 for ATLAS Offline Software by
1.8.18