StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | List of all members
inputParser Class Reference

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)
 

Detailed Description

Definition at line 43 of file inputParser.h.

Constructor & Destructor Documentation

inputParser::inputParser ( )

Constructor

inputParser::~inputParser ( )

Destructor

Member Function Documentation

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


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