StRoot
1
|
Public Member Functions | |
inputParser () | |
~inputParser () | |
int | parseFile (std::string filename) |
int | parseFile (std::ifstream &in) |
void | addIntParameter (std::string name, int *var, bool required=true) |
void | addUintParameter (std::string name, unsigned int *var, bool required=true) |
void | addFloatParameter (std::string name, float *var, bool required=true) |
void | addDoubleParameter (std::string name, double *var, bool required=true) |
void | addBoolParameter (std::string name, bool *var, bool required=true) |
void | printParameterInfo (std::ostream &out=std::cout) |
bool | validateParameters (std::ostream &warnOut=std::cout, std::ostream &errOut=std::cerr) |
Definition at line 43 of file inputParser.h.
inputParser::inputParser | ( | ) |
Constructor
inputParser::~inputParser | ( | ) |
Destructor
void inputParser::addBoolParameter | ( | std::string | name, |
bool * | var, | ||
bool | required = true |
||
) |
Add parameter to pass
void inputParser::addDoubleParameter | ( | std::string | name, |
double * | var, | ||
bool | required = true |
||
) |
Add parameter to pass
void inputParser::addFloatParameter | ( | std::string | name, |
float * | var, | ||
bool | required = true |
||
) |
Add parameter to pass
void inputParser::addIntParameter | ( | std::string | name, |
int * | var, | ||
bool | required = true |
||
) |
Add parameter to pass
void inputParser::addUintParameter | ( | std::string | name, |
unsigned int * | var, | ||
bool | required = true |
||
) |
Add parameter to pass
int inputParser::parseFile | ( | std::string | filename | ) |
Parse a file
int inputParser::parseFile | ( | std::ifstream & | in | ) |
Parse a filestream
void inputParser::printParameterInfo | ( | std::ostream & | out = std::cout | ) |
Print info
bool inputParser::validateParameters | ( | std::ostream & | warnOut = std::cout , |
std::ostream & | errOut = std::cerr |
||
) |
Validate