GGS(GenericGEANT4Simulation)Software
2.7.0
|
Class needed to parse configuration file. More...
#include <GGSInputParser.h>
Public Member Functions | |
void | ReadInput (std::string fileName, int *argc, std::string *argv) |
Reads configuration file. More... | |
void | ReadInput (std::string fileName) |
Reads configuration file. More... | |
const std::string & | GetParameter (std::string parameterName) |
bool | GetFlag (std::string flagName) |
void | Report () |
Static Public Member Functions | |
static GGSInputParser & | GetInstance () |
Get instance of the singleton. More... | |
Class needed to parse configuration file.
This class reads a data card file and returns a pointer to char with the list of inputs and the number of arguments. This class creates a singleton.
Definition at line 26 of file GGSInputParser.h.
|
static |
Get instance of the singleton.
Method to access the pointer to the class
Definition at line 21 of file GGSInputParser.cpp.
void GGSInputParser::ReadInput | ( | std::string | fileName, |
int * | argc, | ||
std::string * | argv | ||
) |
Reads configuration file.
This method reads configuration file and put contents in memory and in an array of chars, returning also the length of the array ("main" style)
Definition at line 36 of file GGSInputParser.cpp.
void GGSInputParser::ReadInput | ( | std::string | fileName | ) |
Reads configuration file.
This method reads configuration file and put contents in memory (this method calls ReadInput(string fileName, int* argc, string* argv))
Definition at line 30 of file GGSInputParser.cpp.