rasdaman complete source
|
#include <cmlparser.hh>
Public Member Functions | |
~CommandLineParser () | |
CommandLineParameter & | addFlagParameter (char shortName, const char *longName, const char *description) throw (CmlException) |
CommandLineParameter & | addStringParameter (char shortName, const char *longName, const char *description, const char *newDefaultValue=NULL) throw (CmlException) |
CommandLineParameter & | addLongParameter (char shortName, const char *longName, const char *description, long newDefaultValue=0L) throw (CmlException) |
bool | isPresent (char shortName) throw (CmlException) |
bool | isPresent (const char *longName) throw (CmlException) |
const char * | getValueAsString (char shortName) throw (CmlException) |
long | getValueAsLong (char shortName) throw (CmlException) |
double | getValueAsDouble (char shortName) throw (CmlException) |
const char * | getValueAsString (const char *longName) throw (CmlException) |
long | getValueAsLong (const char *longName) throw (CmlException) |
double | getValueAsDouble (const char *longName) throw (CmlException) |
void | processCommandLine (int argc, char **argv) throw (CmlException) |
bool | testProcessCommandLine (const char *test_cml) |
void | printHelp () |
void | printStatus () |
Static Public Member Functions | |
static CommandLineParser & | getInstance () |
Static Public Attributes | |
static const char | noShortName |
static const char * | noLongName |
static const char * | ShortSign |
static const char * | LongSign |
CommandLineParser::~CommandLineParser | ( | ) |
CommandLineParameter& CommandLineParser::addFlagParameter | ( | char | shortName, |
const char * | longName, | ||
const char * | description | ||
) | |||
throw | ( | CmlException | |
) |
CommandLineParameter& CommandLineParser::addLongParameter | ( | char | shortName, |
const char * | longName, | ||
const char * | description, | ||
long | newDefaultValue = 0L |
||
) | |||
throw | ( | CmlException | |
) |
CommandLineParameter& CommandLineParser::addStringParameter | ( | char | shortName, |
const char * | longName, | ||
const char * | description, | ||
const char * | newDefaultValue = NULL |
||
) | |||
throw | ( | CmlException | |
) |
|
static |
double CommandLineParser::getValueAsDouble | ( | char | shortName | ) | |
throw | ( | CmlException | |||
) |
double CommandLineParser::getValueAsDouble | ( | const char * | longName | ) | |
throw | ( | CmlException | |||
) |
long CommandLineParser::getValueAsLong | ( | char | shortName | ) | |
throw | ( | CmlException | |||
) |
long CommandLineParser::getValueAsLong | ( | const char * | longName | ) | |
throw | ( | CmlException | |||
) |
const char* CommandLineParser::getValueAsString | ( | char | shortName | ) | |
throw | ( | CmlException | |||
) |
const char* CommandLineParser::getValueAsString | ( | const char * | longName | ) | |
throw | ( | CmlException | |||
) |
bool CommandLineParser::isPresent | ( | char | shortName | ) | |
throw | ( | CmlException | |||
) |
bool CommandLineParser::isPresent | ( | const char * | longName | ) | |
throw | ( | CmlException | |||
) |
void CommandLineParser::printHelp | ( | ) |
void CommandLineParser::printStatus | ( | ) |
void CommandLineParser::processCommandLine | ( | int | argc, |
char ** | argv | ||
) | |||
throw | ( | CmlException | |
) |
bool CommandLineParser::testProcessCommandLine | ( | const char * | test_cml | ) |
|
static |
|
static |
|
static |
|
static |