#include <dataconvertergenerator.hpp>
Public Member Functions | |
DataConverterGenerator () | |
std::vector< std::string > | getFunction () |
std::vector< bool > | getVerbose () |
void | addConverterFunction (std::string function) |
void | addConverterVerbose (bool verbose) |
std::string | getConverterFunction (int converterIndex) |
bool | getConverterVerbose (int converterIndex) |
std::string | generateCode () |
Private Member Functions | |
std::string | functionToString (int converterIndex) |
Private Attributes | |
std::vector< std::string > | function_ |
std::vector< bool > | verbose_ |
Header of the class that generates the code of the converter function for the elements of a hub
Definition at line 8 of file dataconvertergenerator.hpp.
DataConverterGenerator::DataConverterGenerator | ( | ) |
Constructor
Implementation of the class that generates the code of the converter function for the elements of a hub
Definition at line 12 of file dataconvertergenerator.cpp.
|
private |
Returns the string containing the code of the converter function. One can add new functions to this method in order to expand the functionality of the converter, but try to document what kind of objects should the mux result have. Example: the function deg_to_rad expects a mutex containing doubles.
converterIndex | identifier in the array of functions of this particular hub |
Definition at line 65 of file dataconvertergenerator.cpp.
|
virtual |
Method that implements the code generation
Implements YarpCodeGenerator.
Definition at line 44 of file dataconvertergenerator.cpp.
|
private |
converter function name
Definition at line 31 of file dataconvertergenerator.hpp.
|
private |
Verbose flag
Definition at line 32 of file dataconvertergenerator.hpp.