aboutsummaryrefslogtreecommitdiff
path: root/NodeInput.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-12 14:01:17 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-12 14:01:17 +0200
commitefa2f195a5f9c356318fb50532168fa2ee4c0979 (patch)
treef0e78786cd5b71ff0e389b7842f2a88f4b4f7358 /NodeInput.cpp
parent72c9b98b074d98d60983b178b06e1872eb96c242 (diff)
parenta7eb10e81568b65c39d6e1d042309916a9180a2b (diff)
Merge branch 'master' of github.com:lonkaars/depa
Diffstat (limited to 'NodeInput.cpp')
-rw-r--r--NodeInput.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/NodeInput.cpp b/NodeInput.cpp
new file mode 100644
index 0000000..17f9ed5
--- /dev/null
+++ b/NodeInput.cpp
@@ -0,0 +1,28 @@
+#include "NodeInput.h"
+
+#include <iostream>
+
+NodeInput::NodeInput(const char * type) : Node(type) { }
+
+void NodeInput::sim() {
+ if (this->output == nullptr) return;
+ std::cout << this->level << " bar\n";
+ this->output->setLevel(this->level);
+}
+
+NodeInput::NodeInput(const NodeInput * prototype) : Node() { }
+
+NodeInput * NodeInput::clone() const {
+ return new NodeInput(this);
+}
+
+// INPUT_LOW
+NodeInputLow NodeInputLow::instance(NodeInputLow::type);
+NodeInputLow::NodeInputLow(const char * type) : NodeInput() { }
+
+// NodeInputLow::NodeInputLow(const NodeInputLow * prototype) : NodeInput() { }
+
+// // INPUT_HIGH
+// NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type);
+// NodeInputHigh::NodeInputHigh(const char * type) : NodeInput(type) { }
+// NodeInputHigh::NodeInputHigh(const NodeInputHigh * prototype) : NodeInput() { }