1 #ifndef BOTTLECREATOR_GENERATOR_HPP
2 #define BOTTLECREATOR_GENERATOR_HPP
4 #include "yarpcodegenerator.hpp"
5 #include "childgenerator.hpp"
26 std::vector<ChildGenerator> getChildren();
28 std::vector<std::string> getFieldsType();
30 std::vector<std::string> getFieldsMsg();
32 std::vector<std::string> getFieldsMux();
36 void addFieldType(std::string type);
38 void addFieldMsg(std::string msg);
40 void addFieldMux(std::string mux);
42 void removeFirstChild();
46 std::string getFieldType(
int fieldIndex);
48 std::string getFieldMsg(
int fieldIndex);
50 std::string getFieldMux(
int fieldIndex);
76 #endif //BOTTLECREATOR_GENERATOR_HPP
std::string generateCode()
std::vector< ChildGenerator > children_
std::vector< std::string > fieldsMsg_
BottleCreatorGenerator(int numFields, const double &rate_, bool toRos)
std::string handleFieldGeneration(int fieldIndex)
std::vector< std::string > fieldsMux_
std::vector< std::string > fieldsType_
~BottleCreatorGenerator()