39 #ifndef COMMANDLINEPARSER_HH
40 #define COMMANDLINEPARSER_HH
80 class CommandWithOption :
public Command
96 const G4String &optionName =
"optionName");
105 class CommandLineParser
113 int Parse(
int& argc,
char **argv);
virtual const G4String & GetOption()
Command * FindCommand(const G4String &marker)
static CommandLineParser * GetParser()
const G4String & GetDescription()
G4int fMaxOptionNameLength
virtual const G4String & GetDefaultOption()
G4bool WereOptionsSetup()
virtual const G4String & GetOptionName()
virtual void SetOptionName(const G4String &in_op)
static CommandLineParser * fpInstance
int Parse(int &argc, char **argv)
virtual void SetDefaultOption(const G4String &in_op)
virtual void SetOptionName(const G4String &)
virtual const G4String & GetOption()
virtual const G4String & GetOptionName()
virtual void SetOption(const G4String &)
void CorrectRemainingOptions(int &argc, char **argv)
Command * GetCommandIfActive(const G4String &marker)
static void DeleteInstance()
Command(Type, const G4String &description="")
virtual void SetDefaultOption(const G4String &)
virtual ~CommandWithOption()
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
static G4String fNoOption
void AddCommand(const G4String &marker, Command::Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="")
virtual void SetOption(const G4String &in_op)
virtual const G4String & GetDefaultOption()
CommandWithOption(Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="optionName")
std::map< G4String, Command * > fCommandMap