summaryrefslogtreecommitdiffstats
path: root/src/PatchagePort.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchagePort.hpp')
-rw-r--r--src/PatchagePort.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PatchagePort.hpp b/src/PatchagePort.hpp
index b790f0d..8a96f20 100644
--- a/src/PatchagePort.hpp
+++ b/src/PatchagePort.hpp
@@ -42,6 +42,7 @@ class PatchagePort : public Ganv::Port
public:
PatchagePort(Ganv::Module& module,
PortType type,
+ PortID id,
const std::string& name,
const std::string& human_name,
bool is_input,
@@ -53,6 +54,7 @@ public:
is_input,
color)
, _type(type)
+ , _id(id)
, _name(name)
, _human_name(human_name)
, _order(order)
@@ -99,12 +101,14 @@ public:
}
PortType type() const { return _type; }
+ PortID id() const { return _id; }
const std::string& name() const { return _name; }
const std::string& human_name() const { return _human_name; }
const boost::optional<int>& order() const { return _order; }
private:
PortType _type;
+ PortID _id;
std::string _name;
std::string _human_name;
boost::optional<int> _order;