wibble::commandline::OptionGroup Class Reference

Group related commandline options. More...

#include <options.h>

Inheritance diagram for wibble::commandline::OptionGroup:
[legend]
Collaboration diagram for wibble::commandline::OptionGroup:
[legend]

List of all members.

Public Member Functions

Optionadd (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


Detailed Description

Group related commandline options.

Constructor & Destructor Documentation

wibble::commandline::OptionGroup::OptionGroup ( MemoryManager mman = 0,
const std::string &  description = std::string() 
) [inline, protected]


Member Function Documentation

template<typename T >
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().

Option* wibble::commandline::OptionGroup::add ( Option o  )  [inline]

template<typename T >
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().


Friends And Related Function Documentation

friend class Engine [friend]


Member Data Documentation

Referenced by add(), and create().

Referenced by add().


The documentation for this class was generated from the following file:

Generated on Fri Jun 12 05:14:19 2009 for wibble by  doxygen 1.5.9