ResetIPSA Class Reference
[libipsaViewer classesIPSRV remote instructions]

#include <ResetIPSA.h>

Inheritance diagram for ResetIPSA:

Inheritance graph
[legend]
Collaboration diagram for ResetIPSA:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ResetIPSA (IpsaSimulator *simulator, const std::string &code=std::string("reset"))

Protected Member Functions

virtual tExecResultType vExecute (std::vector< std::string > &Instr, std::ostringstream &answer, unsigned int &numberOfReturnValues)

Protected Attributes

IpsaSimulatoripsaSimulator


Detailed Description

Definition at line 37 of file ResetIPSA.h.


Constructor & Destructor Documentation

ResetIPSA::ResetIPSA ( IpsaSimulator simulator,
const std::string &  code = std::string("reset") 
) [inline]

Definition at line 40 of file ResetIPSA.h.


Member Function Documentation

Instruction::tExecResultType ResetIPSA::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().

Parameters:
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.
Returns:
a value from the enum Instruction::tExecResultType

Reimplemented from Instruction.

Definition at line 33 of file ResetIPSA.cpp.

References Instruction::eOK, ipsaSimulator, and IpsaSimulator::reset().


Member Data Documentation

Definition at line 44 of file ResetIPSA.h.

Referenced by vExecute().


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

Get IPSA - Inventor Physics Simulation API at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Sat Mar 10 20:00:19 2012 for IPSA by  doxygen 1.5.8