GEMC  2.2
Geant4 Monte-Carlo Framework
Public Member Functions | Data Fields
goptions Class Reference

#include <options.h>

+ Collaboration diagram for goptions:

Public Member Functions

 goptions ()
 
 ~goptions ()
 
virtual void setGoptions ()
 Function to fill optMap. More...
 
void setOptions ()
 Define option Map. More...
 
void scanGcard (string file)
 Scan option file for options. More...
 
int setOptMap (int argc, char **args)
 Sets map from command line arguments. More...
 
int setOptMap (int argc, char **args, int i)
 
map< string, string > getOptMap ()
 Returns a map<string, string> with all options and values. More...
 
vector< aoptgetArgs (string)
 get a vector of arguments matching a string More...
 

Data Fields

map< string, aoptoptMap
 Options map. More...
 
int ignoreNotFound
 

Detailed Description

Definition at line 54 of file options.h.

Constructor & Destructor Documentation

goptions::goptions ( )

Definition at line 11 of file options.cc.

goptions::~goptions ( )
inline

Definition at line 59 of file options.h.

Member Function Documentation

vector< aopt > goptions::getArgs ( string  opt)

Definition at line 418 of file options.cc.

map< string, string > goptions::getOptMap ( )

Definition at line 435 of file options.cc.

void goptions::scanGcard ( string  file)

reading gcard file

< looping over options

< converts the node to an element.

< the node really is an element.

< selecting "option" nodes

Definition at line 21 of file options.cc.

void goptions::setGoptions ( )
virtual

Definition at line 4 of file gemc_options.cc.

void goptions::setOptions ( )
int goptions::setOptMap ( int  argc,
char **  args 
)

Definition at line 141 of file options.cc.

int goptions::setOptMap ( int  argc,
char **  args,
int  i 
)
inline
Parameters
iSets map from command line arguments - include ignoreNotFound

Definition at line 65 of file options.h.

Field Documentation

int goptions::ignoreNotFound

if this is not 0, it means the options could be shared with another application. So ignore the case that options are not found in the current application

Definition at line 76 of file options.h.

map<string, aopt> goptions::optMap

Definition at line 71 of file options.h.