vsg: vsg::CommandLine Class Reference

vsg 1.1.9 VulkanSceneGraph library |

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
vsg::CommandLine Class Reference

`#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

## Detailed Description

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:

- include/vsg/utils/CommandLine.h