Browse Source

Add configInpug/Output to helper.py.

tags/v2.0.0
Andrew Belt 5 years ago
parent
commit
7b61f3599d
2 changed files with 14 additions and 2 deletions
  1. +8
    -0
      helper.py
  2. +6
    -2
      include/engine/PortInfo.hpp

+ 8
- 0
helper.py View File

@@ -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 += """
}



+ 6
- 2
include/engine/PortInfo.hpp View File

@@ -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;
}
};




Loading…
Cancel
Save