#include <CommandLine.h>
|
|
using | Messages = std::vector<std::string> |
| |
|
|
| CommandLine (int *argc, char **argv) |
| |
|
int & | argc () |
| |
|
char ** | argv () |
| |
|
char * | operator[] (int i) |
| |
|
template<typename T> |
| bool | read (int &i, T &v) |
| |
|
void | remove (int i, int num) |
| |
|
template<typename... Args> |
| bool | read (const std::string &match, Args &... args) |
| |
|
template<typename... Args> |
| bool | read (std::initializer_list< std::string > matches, Args &... args) |
| |
|
template<typename T, typename... Args> |
| T | value (T defaultValue, const std::string &match, Args &... args) |
| |
|
template<typename T, typename... Args> |
| T | value (T defaultValue, std::initializer_list< std::string > matches, Args &... args) |
| |
|
template<typename T> |
| bool | readAndAssign (const std::string &match, Options *options) |
| |
|
bool | read (Options *options) |
| |
|
bool | errors () const |
| |
|
Messages & | getErrorMessages () |
| |
|
const Messages & | getErrorMessages () const |
| |
|
int | writeErrorMessages (std::ostream &out) const |
| |
|
template<> |
| bool | read (int &i, bool &v) |
| |
|
template<> |
| bool | read (const std::string &match, bool &v) |
| |
|
|
int * | _argc |
| |
|
char ** | _argv |
| |
|
std::istringstream | _istr |
| |
|
Messages | _errorMessages |
| |
CommandLine provides a convenient way to parse command line arguments. Almost all examples in vsgExamples use vsg::CommandLine so look to them for a usage guide.
The documentation for this class was generated from the following file: