EPICS ARCHIVER V4
|
General purpose argument parser for command-line programs. More...
#include <ArgParser.h>
Public Member Functions | |
CmdArgParser (int argc, char const *const *argv) | |
Initialize CmdArgParser with main's argc/argv. | |
void | addOption (CmdArg *option) |
Add option. | |
void | usage () |
Print out usage based on all registered CmdArgxxx classes. | |
void | setHeader (const char *header) |
Set additional header text (default: nothing). | |
void | setFooter (const char *footer) |
Set additional footer text (default: nothing). | |
void | setArgumentsInfo (const char *args_info) |
Description for remaining arguments (other than options) | |
bool | parse () |
Parse Arguments,. More... | |
const stdVector< const char * > & | getArguments () |
Remaining arguments (all that didn't start with '-') | |
const char * | getArgument (size_t i) |
Get a single one of the remaining arguments. | |
General purpose argument parser for command-line programs.
Example usage:
bool CmdArgParser::parse | ( | ) |
Parse Arguments,.