diff options
Diffstat (limited to 'Node.cpp')
-rw-r--r-- | Node.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,17 +1,18 @@ +#include <iostream> + #include "Node.h" #include "NodeFactory.h" - -#include <iostream> +#include "Net.h" Node::Node(const char * type) { NodeFactory::assign(type, this); } -void Node::addInput(Net* net) { +void Node::addInput(Net * net) { net->attach(this); } -void Node::setOutput(Net* net){ +void Node::setOutput(Net * net){ this->output = net; } |