Belle II Software  release-08-01-10
ConfigFile Class Reference
Collaboration diagram for ConfigFile:

Public Types

typedef std::map< std::string, std::string > ValueList
 

Public Member Functions

 ConfigFile (const std::string &file1)
 
 ConfigFile (const std::string &file1, const std::string &file2)
 
 ConfigFile (const std::string &file1, const std::string &file2, const std::string &file3)
 
 ConfigFile (std::istream &is)
 
void clear ()
 
void read (const std::string &filename, bool overload=true)
 
void read (std::istream &is, bool overload=true)
 
bool hasKey (const std::string &label)
 
const std::string get (const std::string &label)
 
int getInt (const std::string &label)
 
bool getBool (const std::string &label)
 
double getFloat (const std::string &label)
 
ValueList & getValues ()
 
std::vector< std::string > & getLabels ()
 
void add (const std::string &label, const std::string &value, bool overload)
 
void write (const std::string &path)
 
void print ()
 

Private Member Functions

const std::string getFilePath (const std::string &filename)
 

Private Attributes

ValueList m_value_m
 
std::vector< std::string > m_label_v
 
std::string m_dir
 
std::map< std::string, int > m_count
 

Detailed Description

Definition at line 22 of file ConfigFile.h.


The documentation for this class was generated from the following files: