ATLAS Offline Software
Loading...
Searching...
No Matches
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
18typedef std::map<std::string, std::string, std::less<std::string> > MAPSTR2STR;
19
21{
22 public:
24 virtual ~ALFA_ConfigParams();
25
26 private:
28 std::string m_strSection;
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
std::map< std::string, std::string, std::less< std::string > > MAPSTR2STR
const char * GetParameter(const char *szKey) const
void GetMap(MAPSTR2STR &mapParams) const
const char * GetSectionName() const
int Init(const char *szFile, const char *szSection)
bool IsKey(const char *szKey) const