#include <mode.hh>
Public Member Functions | |
void | addPlugin (Plugin *plugin) |
std::string | getName () const |
bool | main (int argc, char *const argv[]) |
Mode (const std::string &name) | |
virtual | ~Mode () |
Protected Member Functions | |
virtual bool | apply (int argc, char *const argv[])=0 |
Plugin * | getPlugin (const std::string &name) const |
std::list< std::string > | getPluginNames () const |
virtual void | help (std::ostream &stream) const =0 |
Private Types | |
typedef std::map< std::string, Plugin * > | PluginMap |
Private Attributes | |
std::string | m_name |
PluginMap | m_plugins |
typedef std::map<std::string, Plugin *> Mode::PluginMap [private] |
Mode::Mode | ( | const std::string & | name | ) |
Mode::~Mode | ( | ) | [virtual] |
void Mode::addPlugin | ( | Plugin * | plugin | ) |
virtual bool Mode::apply | ( | int | argc, |
char *const | argv[] | ||
) | [protected, pure virtual] |
std::string Mode::getName | ( | ) | const |
Plugin * Mode::getPlugin | ( | const std::string & | name | ) | const [protected] |
list< string > Mode::getPluginNames | ( | ) | const [protected] |
virtual void Mode::help | ( | std::ostream & | stream | ) | const [protected, pure virtual] |
bool Mode::main | ( | int | argc, |
char *const | argv[] | ||
) |
std::string Mode::m_name [private] |
PluginMap Mode::m_plugins [private] |