|
Option< T > Struct Template Reference#include <Options.h>
Inheritance diagram for Option< T >: ![]() Detailed Descriptiontemplate<typename T>
Class template for command line options. |
Public Member Functions | |
Option (char s, const char *l, const char *h, const T &v=T(), bool arg=true) | |
bool | Handle (char s, const char *arg) |
bool | Handle (const std::string &l, const std::string &arg) |
const T & | Value () const |
void | Help () const |
const T * | operator-> () const |
operator const T & () const | |
Option< T > & | operator= (const T &v) |
|
Option constructor.
|
|
Handle an option.
If the option matches, decode the value if needed and return
Implements OptionBase. |
|
Handle an option.
If the option matches, decode the value if needed and return
Implements OptionBase. |
|
Print help information.
Reimplemented from OptionBase. Definition at line 194 of file Options.h. References OptionBase::Help(), OptionBase::IsSet(), and OptionBase::NeedArg(). |
|
Conversion operator.
|
|
Pointer operator to get pointer to underlyinig object.
|
|
Assignment operator.
|
|
|
Top of page | Last update Fri Apr 27 01:54:16 2007 |
Copyright © 2004 Christian Holm | Created by DoxyGen 1.3.5 |