#include <parsecl.hpp>
Inheritance diagram for Arak::Util::CommandLine::Parameter< T >:
Definition at line 142 of file parsecl.hpp.
Public Member Functions | |
Parameter (const char *sflag, const char *lflag, const char *desc, const T &def, bool required=false) | |
Constructor. | |
virtual | ~Parameter () |
Destructor. | |
const T & | value () const |
Returns the value of this parameter. | |
virtual bool | hasArg () |
Returns true if this option takes an argument. | |
Protected Member Functions | |
virtual bool | read (const char *str) |
Reads the value of this parameter from the supplied string. | |
Private Member Functions | |
virtual void | printUsage (std::ostream &out) const |
Prints the usage of this parameter to the supplied output stream. | |
Private Attributes | |
T | val |
The value of this parameter. | |
Friends | |
class | CommandLine |
|
Constructor.
Definition at line 198 of file parsecl.hpp. References Arak::Util::CommandLine::Parameter< T >::val. |
|
Destructor.
Definition at line 208 of file parsecl.hpp. |
|
Returns true if this option takes an argument.
Reimplemented from Arak::Util::CommandLine::Option. Definition at line 218 of file parsecl.hpp. |
|
Prints the usage of this parameter to the supplied output stream.
Reimplemented from Arak::Util::CommandLine::Option. Definition at line 157 of file parsecl.hpp. References Arak::Util::CommandLine::Parameter< T >::val. |
|
Reads the value of this parameter from the supplied string.
Reimplemented from Arak::Util::CommandLine::Option. Definition at line 173 of file parsecl.hpp. References Arak::Util::CommandLine::Parameter< T >::val. |
|
Returns the value of this parameter.
Definition at line 213 of file parsecl.hpp. References Arak::Util::CommandLine::Parameter< T >::val. |
|
Reimplemented from Arak::Util::CommandLine::Option. Definition at line 144 of file parsecl.hpp. |
|
The value of this parameter.
Definition at line 151 of file parsecl.hpp. Referenced by Arak::Util::CommandLine::Parameter< T >::Parameter(), Arak::Util::CommandLine::Parameter< T >::printUsage(), Arak::Util::CommandLine::Parameter< T >::read(), and Arak::Util::CommandLine::Parameter< T >::value(). |