We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb759e4 commit 8ce2968Copy full SHA for 8ce2968
1 file changed
src/msgflo.cpp
@@ -53,7 +53,8 @@ struct Definition {
53
54
static Definition instantiate(Definition &d, std::string role)
55
{
56
- d.id = role; // TODO: add unique suffix
+ d.id = role + std::to_string(rand());
57
+ d.role = role;
58
59
for (auto &p : d.inports) {
60
addDefaultQueue(p, role);
@@ -93,6 +94,7 @@ struct Definition {
93
94
auto ins = ports_to_json(inports);
95
return Json::object {
96
{ "id", id },
97
+ { "role", role },
98
{ "component", component },
99
{ "label", label },
100
{ "icon", icon },
@@ -103,6 +105,7 @@ struct Definition {
103
105
104
106
public:
107
std::string id;
108
+ std::string role;
109
std::string component;
110
std::string label = "";
111
std::string icon = "file-word-o";
0 commit comments