diff options
Diffstat (limited to 'NodeInput.cpp')
-rw-r--r-- | NodeInput.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/NodeInput.cpp b/NodeInput.cpp index 618ed31..fafbd3b 100644 --- a/NodeInput.cpp +++ b/NodeInput.cpp @@ -5,10 +5,12 @@ NodeInputLow NodeInputLow::instance(NodeInputLow::type); NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type); +NodeInput::NodeInput(const char * type) : Node(type) { }; + void NodeInput::sim() { if (this->output == nullptr) return; // std::cout << this->level << " bar\n"; - this->output->setLevel(this->level); + this->output->setLevel(this->input); } NodeInput::NodeInput(const NodeInput * prototype) : Node() { } @@ -17,6 +19,10 @@ NodeInput * NodeInput::clone() const { return new NodeInput(this); } +SignalLevel NodeInput::level() { + return UNDEFINED; +}; + // NodeInputLow::NodeInputLow(const NodeInputLow * prototype) : NodeInput() { } // // INPUT_HIGH |