From f134abd08ccfdb1ece39df4d4a0e422419bd2fed Mon Sep 17 00:00:00 2001 From: UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:19:46 +0200 Subject: Created In/output nodes --- NodeOutput.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 NodeOutput.cpp (limited to 'NodeOutput.cpp') 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 + +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 -- cgit v1.2.3