51 while (
int opt = getopt( p_argc, p_argv,
"hv" ) != -1 )
54 cout <<
"HELP" << endl;
59 cout <<
"KS:verbose mode activated" << endl;
62 inErrExit( unknownoption,
string(
"'") +
char(optopt) +
string(
"'") );
The context of execution.
Definition: context.h:17
Interpreter status.
Definition: interpreter.h:16
public_other void commandline(int p_argc, char **p_argv)
command line parsing.
Definition: interpreter.h:48
Interpreter(const Interpreter &)=delete
delete the copy ctor.
Context * current_
For debugging purposes access to the current Context.
Definition: interpreter.h:19
void setContext(Context *p_c)
Setter for current context.
Definition: interpreter.h:44
static Interpreter * get()
Get the singelton pointer.
Definition: interpreter.h:30
public_accessor bool getVerbose() const
Getter for verbose mode.
Definition: interpreter.h:38
Context * getContext() const
getter for current context.
Definition: interpreter.h:41
Interpreter()
private ctor.
Definition: interpreter.h:22
bool verbose_
Execution in verbose mode or not.
Definition: interpreter.h:18
Interpreter & operator=(const Interpreter &)=delete
delete copy assignement.
#define public_other
other member functions
Definition: helper.h:16
#define public_accessor
accessor functions
Definition: helper.h:14
void inErrExit(InError p_err, const std::string &p_details)
Interpreter Error Message to cout and exit(1).
Definition: helper.cpp:81
Miscellaneous definitions and functions.