A cross-platform functional programming language

OptionVar< T > Class Template Reference

Base class for option variables. More...

#include <CmdLine.hpp>

Inheritance diagram for OptionVar< T >:

List of all members.

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.

Detailed Description

template<typename T>
class zbl::OptionVar< T >

Base class for option variables.

Constructor & Destructor Documentation

OptionVar ( const z::string sname,
const z::string lname,
const z::string desc,
T &  val 
) [inline]

Default constructor.

snameShort name of option
lnameLong name of option
descDescription of option
valReference to variable to be set

Member Function Documentation

virtual void handle ( const bool &  isOption,
z::stringlist::iterator &  it 
) [inline, virtual]

Handle this option.

isOptionTrue if this is an option
itIterator pointing to current position in argument list

Implements OptionBase.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines