Diana Software
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
QOptionHandler Class Reference

Public Member Functions

virtual ~QOptionHandler ()
 
void Parse (int, char **)
 
const std::string & GetStringParam (const std::string &name)
 
int GetIntParam (const std::string &name)
 
double GetRealParam (const std::string &name)
 
bool CheckParam (const std::string &name)
 
void Dump (std::ostream &c=std::cout)
 

Static Public Member Functions

static QOptionHandlerGet ()
 

Private Member Functions

 QOptionHandler ()
 

Private Attributes

std::map< std::string, std::string > s_options
 
std::map< std::string, int > i_options
 
std::map< std::string, double > d_options
 

Static Private Attributes

static QOptionHandlerme = 0
 

Detailed Description

Definition at line 19 of file QOptionHandler.hh.

Constructor & Destructor Documentation

◆ ~QOptionHandler()

QOptionHandler::~QOptionHandler ( )
virtual

Definition at line 32 of file QOptionHandler.cc.

◆ QOptionHandler()

QOptionHandler::QOptionHandler ( )
private

Definition at line 21 of file QOptionHandler.cc.

Referenced by Get().

Member Function Documentation

◆ CheckParam()

bool QOptionHandler::CheckParam ( const std::string &  name)

Definition at line 146 of file QOptionHandler.cc.

References d_options, i_options, and s_options.

◆ Dump()

void QOptionHandler::Dump ( std::ostream &  c = std::cout)

Definition at line 164 of file QOptionHandler.cc.

References d_options, i_options, and s_options.

◆ Get()

QOptionHandler * QOptionHandler::Get ( )
static

Definition at line 43 of file QOptionHandler.cc.

References me, and QOptionHandler().

◆ GetIntParam()

int QOptionHandler::GetIntParam ( const std::string &  name)

Definition at line 119 of file QOptionHandler.cc.

References i_options.

◆ GetRealParam()

double QOptionHandler::GetRealParam ( const std::string &  name)

Definition at line 132 of file QOptionHandler.cc.

References d_options.

◆ GetStringParam()

const std::string & QOptionHandler::GetStringParam ( const std::string &  name)

Definition at line 105 of file QOptionHandler.cc.

References s_options.

◆ Parse()

void QOptionHandler::Parse ( int  n,
char **  par 
)

Definition at line 56 of file QOptionHandler.cc.

References d_options, i_options, and s_options.

Member Data Documentation

◆ d_options

std::map<std::string,double> QOptionHandler::d_options
private

Definition at line 54 of file QOptionHandler.hh.

Referenced by CheckParam(), Dump(), GetRealParam(), and Parse().

◆ i_options

std::map<std::string,int> QOptionHandler::i_options
private

Definition at line 53 of file QOptionHandler.hh.

Referenced by CheckParam(), Dump(), GetIntParam(), and Parse().

◆ me

QOptionHandler * QOptionHandler::me = 0
staticprivate

Definition at line 50 of file QOptionHandler.hh.

Referenced by Get().

◆ s_options

std::map<std::string,std::string> QOptionHandler::s_options
private

Definition at line 52 of file QOptionHandler.hh.

Referenced by CheckParam(), Dump(), GetStringParam(), and Parse().


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