Command< Parser > Class Template Reference

Stores a pointer to a CommandParser sub-class and one of its methods. More...

#include <CommandParser.h>

Inheritance diagram for Command< Parser >:
CommandParser::Method

Public Member Functions

 Command (Parser *_instance, Method _method, const std::string &_command, const std::string &_help, const std::string &_detailed_help, char _shortcut)
 
std::string execute (const std::string &args)
 Execute method.
 
std::string detail () const
 

Protected Attributes

Method method
 Method of the sub-class to execute.
 
Parser * instance
 Instance through which method is called.
 
std::string detailed_help
 The detailed help string for this method.
 

Friends

class CommandParser
 

Additional Inherited Members

- Public Attributes inherited from CommandParser::Method
std::string command
 The command string corresponding to this method.
 
std::string help
 The help string for this method.
 
char shortcut
 The shortcut character corresponding to this method.
 

Detailed Description

template<class Parser>
class Command< Parser >

Stores a pointer to a CommandParser sub-class and one of its methods.


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

Generated using doxygen 1.8.17