aboutsummaryrefslogtreecommitdiff
path: root/NodeOutput.cpp
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 13:19:46 +0200
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2024-06-12 13:19:46 +0200
commitf134abd08ccfdb1ece39df4d4a0e422419bd2fed (patch)
tree98a52327ce000c707793e084eaf9bf50ca16f4d5 /NodeOutput.cpp
parent126a3c79516a6417181c3fe924084032d653b596 (diff)
Created In/output nodes
Diffstat (limited to 'NodeOutput.cpp')
-rw-r--r--NodeOutput.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/NodeOutput.cpp b/NodeOutput.cpp
new file mode 100644
index 0000000..cff66c0
--- /dev/null
+++ b/NodeOutput.cpp
@@ -0,0 +1,18 @@
+#include "NodeOutput.h"
+#include <iostream>
+
+NodeOutput NodeOutput::instance(NodeOutput::type);
+
+NodeOutput::NodeOutput(const char * type) : Node(type) { }
+
+void NodeOutput::compare() {
+ if (this->inputs.size() > 0) {
+ std::cout << this->inputs[0]->getLevel() << std::endl;
+ }
+}
+
+NodeOutput::NodeOutput(const NodeOutput * prototype) : Node() { }
+
+NodeOutput * NodeOutput::clone() const {
+ return new NodeOutput(this);
+} \ No newline at end of file