diff options
Diffstat (limited to 'NodeInput.cpp')
-rw-r--r-- | NodeInput.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/NodeInput.cpp b/NodeInput.cpp index 17f9ed5..618ed31 100644 --- a/NodeInput.cpp +++ b/NodeInput.cpp @@ -2,12 +2,13 @@ #include <iostream> -NodeInput::NodeInput(const char * type) : Node(type) { } +NodeInputLow NodeInputLow::instance(NodeInputLow::type); +NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type); void NodeInput::sim() { - if (this->output == nullptr) return; - std::cout << this->level << " bar\n"; - this->output->setLevel(this->level); + if (this->output == nullptr) return; + // std::cout << this->level << " bar\n"; + this->output->setLevel(this->level); } NodeInput::NodeInput(const NodeInput * prototype) : Node() { } @@ -16,10 +17,6 @@ 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 |