Public Member Functions | |
| OptionParser (int argc, const char *const *argv) | |
| ~OptionParser () | |
| void | AddArgMap (const argmap *pasMap) |
| void | AddArgMap (const String &cLongArg, char nShortArg, const String &cDesc) |
| void | ParseOptions (const char *pzOptions) |
| int | GetOptionCount () const |
| int | GetFileCount () const |
| const option * | FindOption (char nOpt) const |
| const option * | FindOption (const String &cLongName) const |
| const option * | GetNextOption () |
| void | RewindOptions () |
| const option * | GetOption (uint nIndex) const |
| const std::vector< String > & | GetArgs () const |
| const std::vector< String > & | GetFileArgs () const |
| String | GetHelpText (int nWidth=0) const |
| void | PrintHelpText (int nWidth=0) const |
| void | PrintHelpText (StreamableIO *pcStream, int nWidth=0) const |
| String | operator[] (int nIndex) const |
Classes | |
| struct | argmap |
| struct | option |
| class | Private |
| OptionParser::OptionParser | ( | int | argc, | |
| const char *const * | argv | |||
| ) |
| OptionParser::~OptionParser | ( | ) |
| void OptionParser::AddArgMap | ( | const argmap * | pasMap | ) |
| void OptionParser::ParseOptions | ( | const char * | pzOptions | ) |
| int OptionParser::GetOptionCount | ( | ) | const |
| int OptionParser::GetFileCount | ( | ) | const |
| const OptionParser::option * OptionParser::FindOption | ( | char | nOpt | ) | const |
| const OptionParser::option * OptionParser::FindOption | ( | const String & | cLongName | ) | const |
| const OptionParser::option * OptionParser::GetNextOption | ( | ) |
| void OptionParser::RewindOptions | ( | ) |
| const OptionParser::option * OptionParser::GetOption | ( | uint | nIndex | ) | const |
| const std::vector< String > & OptionParser::GetArgs | ( | ) | const |
| const std::vector< String > & OptionParser::GetFileArgs | ( | ) | const |
| String OptionParser::GetHelpText | ( | int | nWidth = 0 |
) | const |
| void OptionParser::PrintHelpText | ( | int | nWidth = 0 |
) | const |
| void OptionParser::PrintHelpText | ( | StreamableIO * | pcStream, | |
| int | nWidth = 0 | |||
| ) | const |
| String OptionParser::operator[] | ( | int | nIndex | ) | const |
1.5.1