#include <ViewerHelp.h>


Public Member Functions | |
| ViewerHelp (std::map< std::string, Instruction * > AllInstructions, const std::string &code=std::string("help")) | |
Protected Member Functions | |
| virtual tExecResultType | vExecute (std::vector< std::string > &Instr, std::ostringstream &answer, unsigned int &numberOfReturnValues) |
Protected Attributes | |
| const std::map< std::string, Instruction * > | lAllInstructions |
Definition at line 41 of file ViewerHelp.h.
| ViewerHelp::ViewerHelp | ( | std::map< std::string, Instruction * > | AllInstructions, | |
| const std::string & | code = std::string("help") | |||
| ) | [inline] |
Definition at line 44 of file ViewerHelp.h.
| Instruction::tExecResultType ViewerHelp::vExecute | ( | std::vector< std::string > & | Instr, | |
| std::ostringstream & | answer, | |||
| unsigned int & | numberOfReturnValues | |||
| ) | [protected, virtual] |
Virtual method which must be overridden by any subclass. It does the "real" execution of the command and is called by Instruction::findAndExecute().
| Instr | instruction vector which is build like Instruction::instrdata of the specific subclass of Instruction | |
| answer | a stringstream where the answer of Instruction::vExecute() gets written to | |
| numberOfReturnValues | tells the method how many values should be stored in answer. |
Reimplemented from Instruction.
Definition at line 29 of file ViewerHelp.cpp.
References Instruction::eOK, Instruction::getCmdHelpString(), and lAllInstructions.
const std::map<std::string, Instruction*> ViewerHelp::lAllInstructions [protected] |
|
|
Generated on Sat Mar 10 20:00:21 2012 for IPSA by
1.5.8
|