Public Member Functions | Protected Member Functions | Private Types | Private Attributes
Mode Class Reference

#include <mode.hh>

Inheritance diagram for Mode:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 10 of file mode.hh.


Member Typedef Documentation

typedef std::map<std::string, Plugin *> Mode::PluginMap [private]

Definition at line 31 of file mode.hh.


Constructor & Destructor Documentation

Mode::Mode ( const std::string &  name)

Definition at line 7 of file mode.cc.

Mode::~Mode ( ) [virtual]

Definition at line 10 of file mode.cc.


Member Function Documentation

void Mode::addPlugin ( Plugin plugin)

Definition at line 36 of file mode.cc.

virtual bool Mode::apply ( int  argc,
char *const  argv[] 
) [protected, pure virtual]

Implemented in Import, and Inspect.

std::string Mode::getName ( void  ) const

Definition at line 12 of file mode.cc.

Plugin * Mode::getPlugin ( const std::string &  name) const [protected]

Definition at line 31 of file mode.cc.

list< string > Mode::getPluginNames ( ) const [protected]

Definition at line 24 of file mode.cc.

virtual void Mode::help ( std::ostream &  stream) const [protected, pure virtual]

Implemented in Import, and Inspect.

bool Mode::main ( int  argc,
char *const  argv[] 
)

Definition at line 14 of file mode.cc.


Member Data Documentation

std::string Mode::m_name [private]

Definition at line 30 of file mode.hh.

Definition at line 32 of file mode.hh.


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


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:41