#include <vector>#include <string>#include <sstream>#include <iostream>


Go to the source code of this file.
Functions | |
| template<typename T > | |
| bool | convertAnswerToType (const std::string &answer, T &result) |
| template<typename T > | |
| bool | convertAnswerToVector (const std::string &answer, std::vector< T > &result, unsigned int numberOfExpectedValues=3) |
Definition in file NVInstructionAnswerParsing.h.
| bool convertAnswerToType | ( | const std::string & | answer, | |
| T & | result | |||
| ) | [inline] |
This method converts the string answer into a value of type T and stores it in the variable result. The parameter answer should by of the form "<T>" for the method to work.
| answer | the string to convert into a value of type T | |
| result | the variable to store the result in |
Definition at line 86 of file NVInstructionAnswerParsing.h.
| bool convertAnswerToVector | ( | const std::string & | answer, | |
| std::vector< T > & | result, | |||
| unsigned int | numberOfExpectedValues = 3 | |||
| ) | [inline] |
This method converts the string answer into values of type T and stores them in the vector result. result needs to be of size numberOfExpectedValues (default = 3). The parameter answer must be of the form "<T_0> <T_1> .. <T_numberOfExpectedValues>".
| answer | the string to convert into values of type T | |
| result | the vector to store the result in (needs to be of size numberOfExpectedValues) | |
| numberOfExpectedValues | tells the method how many values are exptected as a result (default = 3) |
Definition at line 47 of file NVInstructionAnswerParsing.h.
Referenced by IpsaDialog::evaluateAnswer().
|
|
Generated on Sat Mar 10 20:00:16 2012 for IPSA by
1.5.8
|