diff --git a/helper.py b/helper.py index 9f04d8af..15d2f62d 100755 --- a/helper.py +++ b/helper.py @@ -399,6 +399,14 @@ struct {identifier} : Module {{""" source += f""" configParam({c['name']}_PARAM, 0.f, 1.f, 0.f, "");""" + for c in components['inputs']: + source += f""" + configInput({c['name']}_INPUT, "");""" + + for c in components['outputs']: + source += f""" + configOutput({c['name']}_OUTPUT, "");""" + source += """ } diff --git a/include/engine/PortInfo.hpp b/include/engine/PortInfo.hpp index b0752758..c4d1b134 100644 --- a/include/engine/PortInfo.hpp +++ b/include/engine/PortInfo.hpp @@ -20,8 +20,12 @@ struct PortInfo { std::string description; virtual ~PortInfo() {} - virtual std::string getName() {return name;} - virtual std::string getDescription() {return description;} + virtual std::string getName() { + return name; + } + virtual std::string getDescription() { + return description; + } };