|
wibble
0.1.28
|
Group related commandline options. More...
#include <options.h>


Public Member Functions | |
| Option * | add (Option *o) |
| template<typename T > | |
| T * | create (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) |
| Create a new option. | |
| template<typename T > | |
| T * | add (const std::string &name, char shortName, const std::string &longName, const std::string &usage=std::string(), const std::string &description=std::string()) |
| Create a new option and add it to this group. | |
Public Attributes | |
| std::vector< Option * > | options |
| std::string | description |
| bool | hidden |
Protected Member Functions | |
| OptionGroup (MemoryManager *mman=0, const std::string &description=std::string()) | |
Friends | |
| class | Engine |
Group related commandline options.
| wibble::commandline::OptionGroup::OptionGroup | ( | MemoryManager * | mman = 0, |
| const std::string & | description = std::string() |
||
| ) | [inline, protected] |
| Option* wibble::commandline::OptionGroup::add | ( | Option * | o | ) | [inline] |
| T* wibble::commandline::OptionGroup::add | ( | const std::string & | name, |
| char | shortName, | ||
| const std::string & | longName, | ||
| const std::string & | usage = std::string(), |
||
| const std::string & | description = std::string() |
||
| ) | [inline] |
Create a new option and add it to this group.
References add(), description, and usage().
| T* wibble::commandline::OptionGroup::create | ( | const std::string & | name, |
| char | shortName, | ||
| const std::string & | longName, | ||
| const std::string & | usage = std::string(), |
||
| const std::string & | description = std::string() |
||
| ) | [inline] |
Create a new option.
References wibble::commandline::MemoryManager::add(), description, and usage().
friend class Engine [friend] |
| std::string wibble::commandline::OptionGroup::description |
| std::vector<Option*> wibble::commandline::OptionGroup::options |
Referenced by add().
1.7.6.1