|
vsg
1.0.4
VulkanSceneGraph library
|
#include <CommandLine.h>
Public Types | |
| using | Messages = std::vector< std::string > |
Public Member Functions | |
| 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) |
Protected Attributes | |
| int * | _argc |
| char ** | _argv |
| std::istringstream | _istr |
| Messages | _errorMessages |
CommandLine provides a convenient way parse command line arguments. Almost all examples in vsgExamples use vsg::CommandLine so look to them for a usage guide.