#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 |
wibble::commandline::OptionGroup::OptionGroup | ( | MemoryManager * | mman = 0 , |
|
const std::string & | description = std::string() | |||
) | [inline, protected] |
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().
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] |
friend class Engine [friend] |
std::vector<Option*> wibble::commandline::OptionGroup::options |
Referenced by add().
std::string wibble::commandline::OptionGroup::description |