YarpBottleGenerator
 All Classes Files Functions Variables Pages
dataconvertergenerator.hpp
1 #ifndef DATACONVERTER_GENERATOR_HPP
2 #define DATACONVERTER_GENERATOR_HPP
3 #include <vector>
4 #include "yarpcodegenerator.hpp"
9  public:
15 
16  std::vector<std::string> getFunction();
17 
18  std::vector<bool> getVerbose();
19 
20  void addConverterFunction(std::string function);
21 
22  void addConverterVerbose(bool verbose);
23 
24  std::string getConverterFunction(int converterIndex);
25 
26  bool getConverterVerbose(int converterIndex);
27 
28  std::string generateCode();
29 
30  private:
31  std::vector<std::string> function_;
32  std::vector<bool> verbose_;
34  std::string functionToString(int converterIndex);
35 };
36 
37 #endif //DATACONVERTER_GENERATOR_HPP
std::string functionToString(int converterIndex)
std::vector< std::string > function_