diff options
Diffstat (limited to 'NodeInput.cpp')
-rw-r--r-- | NodeInput.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/NodeInput.cpp b/NodeInput.cpp index 0fc8110..fafbd3b 100644 --- a/NodeInput.cpp +++ b/NodeInput.cpp @@ -2,12 +2,15 @@ #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; +NodeInput::NodeInput(const char * type) : Node(type) { }; - this->output->setLevel(this->input); +void NodeInput::sim() { + if (this->output == nullptr) return; + // std::cout << this->level << " bar\n"; + this->output->setLevel(this->input); } NodeInput::NodeInput(const NodeInput * prototype) : Node() { } @@ -16,9 +19,9 @@ NodeInput * NodeInput::clone() const { return new NodeInput(this); } -// INPUT_LOW -NodeInputLow NodeInputLow::instance(NodeInputLow::type); -NodeInputLow::NodeInputLow(const char * type) : NodeInput() { } +SignalLevel NodeInput::level() { + return UNDEFINED; +}; // NodeInputLow::NodeInputLow(const NodeInputLow * prototype) : NodeInput() { } |