1 #ifndef CHILD_GENERATOR_HPP
2 #define CHILD_GENERATOR_HPP
4 #include "yarpcodegenerator.hpp"
24 std::vector<ChildGenerator> getChildren();
26 std::vector<std::string> getFieldsType();
28 std::vector<std::string> getFieldsMsg();
30 std::vector<std::string> getFieldsMux();
32 void setParentName(std::string parentName);
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);
62 std::string parentName_;
75 #endif //CHILD_GENERATOR_HPP
std::vector< std::string > fieldsType_
std::string handleFieldGeneration(int fieldIndex)
std::vector< std::string > fieldsMsg_
std::vector< ChildGenerator > children_
std::string generateCode()
std::vector< std::string > fieldsMux_
ChildGenerator(int numFields, bool toRos)