aboutsummaryrefslogtreecommitdiff
path: root/Node.h
diff options
context:
space:
mode:
Diffstat (limited to 'Node.h')
-rw-r--r--Node.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Node.h b/Node.h
new file mode 100644
index 0000000..70a580c
--- /dev/null
+++ b/Node.h
@@ -0,0 +1,23 @@
+#pragma once
+#include <string>
+#include <vector>
+
+#include "Observer.h"
+#include "Net.h"
+
+
+
+class Node: Observer {
+ private:
+ std::string label;
+ std::string type;
+
+ std::vector<Net*> inputs;
+ std::vector<Net*> outputs;
+
+ public:
+ Node(/* args */);
+ ~Node();
+ virtual void addInput(Net*);
+ virtual void addOutput(Net*);
+};