GEMC  2.3
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 58 of file options.h.

Constructor & Destructor Documentation

goptions::goptions ( )

Definition at line 11 of file options.cc.

goptions::~goptions ( )
inline

Definition at line 63 of file options.h.

Member Function Documentation

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

Definition at line 427 of file options.cc.

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

Definition at line 444 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 142 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 69 of file options.h.

Field Documentation

int goptions::ignoreNotFound

if this is not 0, it means the options

Definition at line 80 of file options.h.

map<string, aopt> goptions::optMap

Definition at line 75 of file options.h.