![]() |
Zen
A cross-platform functional programming language
|
Classes to help parse command line arguments. More...
Go to the source code of this file.
Classes | |
| struct | callMethod< ObjT, T > |
| Partial template struct to call a callback function. More... | |
| struct | callMethod< ObjT, bool > |
| Partial template struct specialization to call a callback function with bool value. More... | |
| struct | callMethod< ObjT, int > |
| Partial template struct specialization to call a callback function with int value. More... | |
| struct | callMethod< ObjT, z::string > |
| Partial template struct specialization to call a callback function with string value. More... | |
| class | OptionBase |
| Base class for command line options. More... | |
| class | OptionVar< T > |
| Base class for option variables. More... | |
| class | OptionCall< ObjT, T > |
| Base class for option functions. More... | |
| class | CmdLine |
| Command line parser class. More... | |
| class | CmdLine::Command |
| Command class. More... | |
Namespaces | |
| namespace | zbl |
zbl namespace | |
| namespace | zbl::anonymous_namespace{CmdLine.hpp} |
Functions | |
| template<typename T > | |
| void | setValue (const z::string &str, T &val) |
| Partial template function to set the value of a variable from a string. | |
| template<> | |
| void | setValue< bool > (const z::string &str, bool &val) |
| Partial template function specialization to set the value of a boolean variable from a string. | |
| template<> | |
| void | setValue< int > (const z::string &str, int &val) |
| Partial template function specialization to set the value of an int variable from a string. | |
| template<> | |
| void | setValue< z::string > (const z::string &str, z::string &val) |
| Partial template function specialization to set the value of a string variable from a string. | |
| template<> | |
| void | setValue< z::stringlist > (const z::string &str, z::stringlist &val) |
| Partial template function specialization to append a string to a stringlist variable. | |
| template<typename T > | |
| bool | shouldInc (const bool &val) |
| Partial template function to check whether iterator should be incremented after parsing an argument. | |
| template<> | |
| bool | shouldInc< bool > (const bool &val) |
| Partial template function specialization to check whether iterator should be incremented after parsing a bool argument. | |
Classes to help parse command line arguments.