![]() |
Zen
A cross-platform functional programming language
|
Base class for option variables. More...
#include <CmdLine.hpp>
Public Member Functions | |
| OptionVar (const z::string &sname, const z::string &lname, const z::string &desc, T &val) | |
| Default constructor. | |
| virtual void | handle (const bool &isOption, z::stringlist::iterator &it) |
| Handle this option. | |
Private Attributes | |
| T & | _val |
| Reference to variable to be set. | |
Base class for option variables.
| OptionVar | ( | const z::string & | sname, |
| const z::string & | lname, | ||
| const z::string & | desc, | ||
| T & | val | ||
| ) | [inline] |
Default constructor.
| sname | Short name of option |
| lname | Long name of option |
| desc | Description of option |
| val | Reference to variable to be set |
| virtual void handle | ( | const bool & | isOption, |
| z::stringlist::iterator & | it | ||
| ) | [inline, virtual] |
Handle this option.
| isOption | True if this is an option |
| it | Iterator pointing to current position in argument list |
Implements OptionBase.