My Project
|
Public Member Functions | |
virtual | ~Program () |
void | show (void) |
std::string | getParameter (std::string key) |
get string value of a parameter More... | |
double | getdParameter (std::string key) |
get double value of a parameter More... | |
int | getiParameter (std::string key) |
get int value of a parameter More... | |
bool | getbParameter (std::string key) |
get boolean value of a parameter More... | |
bool | hasValue (std::string key) |
does keyword have a value More... | |
bool | isDefault (std::string key) |
int | count (std::string key) |
usage count of a keyword More... | |
int | run (int argc, char *argv[]) |
Static Public Member Functions | |
static Program * | getProgram () |
Class global method to get the process-wide singleton instance of Program. More... | |
Static Public Attributes | |
static KeyTabEntry | keywords [] |
|
virtual |
Destructor.
....................................................................... Destructor.
int Program::count | ( | std::string | key | ) |
usage count of a keyword
....................................................................... Count the number of keywords
bool Program::getbParameter | ( | std::string | key | ) |
get boolean value of a parameter
....................................................................... Return the value of a boolean keyword
double Program::getdParameter | ( | std::string | key | ) |
get double value of a parameter
....................................................................... Return the value of a double keyword
int Program::getiParameter | ( | std::string | key | ) |
get int value of a parameter
....................................................................... Return the value of an integer keyword
string Program::getParameter | ( | std::string | key | ) |
get string value of a parameter
....................................................................... Return the string version of a keyword
|
static |
Class global method to get the process-wide singleton instance of Program.
Class global method that returns a reference to the process-wide single instance of class Program. Basically a factory method that is tailored to return the same instance for every call.
....................................................................... Get a pointer to a static instance of the Program class
bool Program::hasValue | ( | std::string | key | ) |
does keyword have a value
....................................................................... Return true if the named key has a value.
bool Program::isDefault | ( | std::string | key | ) |
....................................................................... Return true if the named key has its default value
int Program::run | ( | int | argc, |
char * | argv[] | ||
) |
Run a program
....................................................................... Run a program
void Program::show | ( | void | ) |
debugging routine
....................................................................... Show a listing of this program
|
static |
Static array of user-defined keywords