1 #ifndef GCP_PROGRAM_PROGRAM_H
2 #define GCP_PROGRAM_PROGRAM_H
13 #define END_OF_KEYWORDS "end_of_keywords"
108 int count(std::string key);
113 int run(
int argc,
char* argv[]);
135 static std::string version_;
136 static std::string usage;
137 static std::string description;
139 std::string progName_;
160 void initializeUsage();
177 void printGreeting();
178 std::string fillLine(
unsigned char c,
unsigned length);
179 std::string formatLine(std::string line,
180 unsigned leftPad,
unsigned rightPad,
unsigned length);
191 std::string getProgname(
void);
201 char **getArgv(
void);
211 int findKey(
const std::string);
220 #endif // End #ifndef GCP_PROGRAM_PROGRAM_H
static KeyTabEntry keywords[]
Definition: Program.h:52
double getdParameter(std::string key)
get double value of a parameter
Definition: Program.cc:475
int getiParameter(std::string key)
get int value of a parameter
Definition: Program.cc:466
int run(int argc, char *argv[])
Definition: Program.cc:304
std::string getParameter(std::string key)
get string value of a parameter
Definition: Program.cc:450
bool hasValue(std::string key)
does keyword have a value
Definition: Program.cc:420
bool isDefault(std::string key)
Definition: Program.cc:435
virtual ~Program()
Definition: Program.cc:49
void show(void)
Definition: Program.cc:344
int count(std::string key)
usage count of a keyword
Definition: Program.cc:502
bool getbParameter(std::string key)
get boolean value of a parameter
Definition: Program.cc:484
static Program * getProgram()
Class global method to get the process-wide singleton instance of Program.
Definition: Program.cc:613