Go to the documentation of this file.
44 #ifndef COMMANDOPTIONPARSER_HPP
45 #define COMMANDOPTIONPARSER_HPP
128 std::ostream&
printHelp(std::ostream& out,
bool doPretty =
true,
129 bool firstOnly =
true);
135 std::ostream&
displayUsage(std::ostream& out,
bool doPretty=
true);
CommandOptionParser & addOption(gnsstk::CommandOption &co)
std::ostream & displayUsageDoxygen(std::ostream &out)
CommandOptionVec defaultCommandOptionList
bool helpRequested()
Returns true if any help was requested.
std::ostream & dumpErrors(std::ostream &out)
Writes the errors to out.
std::string progName
the name of this program
std::vector< CommandOptionHelp * > helpOptions
CommandOptionVec optionVec
The vector of CommandOptions for the parser.
std::vector< CommandOption * > CommandOptionVec
bool hasRequiredArguments
The vector of unprocessed command line arguments.
bool hasOptionalArguments
whether or not this command line has optional options
CommandOptionParser(const std::string &description, const CommandOptionVec &optList=defaultCommandOptionList)
void resizeOptionArray(struct option *&oldArray, unsigned long &oldSize)
changes the size of the option array for getopt_long.
void parseOptions(int argc, char *argv[])
Parses the command line.
std::ostream & displayUsage(std::ostream &out, bool doPretty=true)
std::map< std::string, gnsstk::CommandOption * > CommandOptionMap
std::string text
the description of this program
std::vector< std::string > errorStrings
The vector of error strings for displaying to the user.
bool hasErrors()
Returns true if any processing errors occurred.
std::ostream & printHelp(std::ostream &out, bool doPretty=true, bool firstOnly=true)
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38