Particle Identification and Tracking
Public Member Functions | Private Attributes | List of all members
utilities::CL_parse Class Reference

A class to wrap the parsing of the command line to extract the input file, output file and parameter file. More...

#include <cl_parse.h>

+ Collaboration diagram for utilities::CL_parse:

Public Member Functions

 CL_parse (int argc, char *const argv[])
 Constructor. More...
 
void parse () throw (std::invalid_argument)
 Parses the command line arguments. More...
 
void get_fin (std::string &fin_str) const
 Returns the fin string. More...
 
void get_fout (std::string &fout_str) const
 Returns the fout string. More...
 
void get_fpram (std::string &fpram_str) const
 Returns the fpram string. More...
 
void get_fdb (std::string &fdb_str) const
 Returns the fdb string. More...
 

Private Attributes

std::string fin_
 
std::string fout_
 
std::string fpram_
 
std::string fdb_
 
bool found_db_
 
char *const * argv_
 
const int argc_
 

Detailed Description

A class to wrap the parsing of the command line to extract the input file, output file and parameter file.

Constructor & Destructor Documentation

CL_parse::CL_parse ( int  argc,
char *const  argv[] 
)

Constructor.

Does nothing but sets fields

Member Function Documentation

void utilities::CL_parse::get_fdb ( std::string &  fdb_str) const
inline

Returns the fdb string.

References fdb_, and found_db_.

void utilities::CL_parse::get_fin ( std::string &  fin_str) const
inline

Returns the fin string.

References fin_.

Referenced by main().

void utilities::CL_parse::get_fout ( std::string &  fout_str) const
inline

Returns the fout string.

References fout_.

Referenced by main().

void utilities::CL_parse::get_fpram ( std::string &  fpram_str) const
inline

Returns the fpram string.

References fpram_.

Referenced by main().

void CL_parse::parse ( )
throw (std::invalid_argument
)

Parses the command line arguments.

Throws

References argc_, argv_, fdb_, fin_, found_db_, fout_, and fpram_.

Referenced by main().

Member Data Documentation

const int utilities::CL_parse::argc_
private

Referenced by parse().

char* const* utilities::CL_parse::argv_
private

Referenced by parse().

std::string utilities::CL_parse::fdb_
private

Referenced by get_fdb(), and parse().

std::string utilities::CL_parse::fin_
private

Referenced by get_fin(), and parse().

bool utilities::CL_parse::found_db_
private

Referenced by get_fdb(), and parse().

std::string utilities::CL_parse::fout_
private

Referenced by get_fout(), and parse().

std::string utilities::CL_parse::fpram_
private

Referenced by get_fpram(), and parse().


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