diff options
Diffstat (limited to 'NodeInput.cpp')
| -rw-r--r-- | NodeInput.cpp | 26 | 
1 files changed, 11 insertions, 15 deletions
| diff --git a/NodeInput.cpp b/NodeInput.cpp index fafbd3b..2d1d517 100644 --- a/NodeInput.cpp +++ b/NodeInput.cpp @@ -1,18 +1,11 @@  #include "NodeInput.h" +#include "prut.h"  #include <iostream>  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->input); -} -  NodeInput::NodeInput(const NodeInput * prototype) : Node() { }  NodeInput * NodeInput::clone() const { @@ -20,12 +13,15 @@ NodeInput * NodeInput::clone() const {  }  SignalLevel NodeInput::level() { +	prutprint("");  	return UNDEFINED; -}; - -// NodeInputLow::NodeInputLow(const NodeInputLow * prototype) : NodeInput() { } +} +SignalLevel NodeInputLow::level() { +	prutprint(""); +	return LOW; +} +SignalLevel NodeInputHigh::level() { +	prutprint(""); +	return HIGH; +} -// // INPUT_HIGH -// NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type); -// NodeInputHigh::NodeInputHigh(const char * type) : NodeInput(type) { } -// NodeInputHigh::NodeInputHigh(const NodeInputHigh * prototype) : NodeInput() { } |