aboutsummaryrefslogtreecommitdiff
path: root/NodeInput.cpp
blob: 6ee0db442f9d844c2b1dfda3756aa96590d137fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "NodeInput.h"
#include "prut.h"

NodeInputLow NodeInputLow::instance(NodeInputLow::type);
NodeInputHigh NodeInputHigh::instance(NodeInputHigh::type);

NodeInput::NodeInput() {
	this->max_inputs = -1;
	this->max_inputs = 0;
}

NodeInputLow * NodeInputLow::clone() const {
	return new NodeInputLow(this);
}
SignalLevel NodeInputLow::level() {
	prutprint("LOW");
	return LOW;
}

NodeInputHigh * NodeInputHigh::clone() const {
	return new NodeInputHigh(this);
}
SignalLevel NodeInputHigh::level() {
	prutprint("HIGH");
	return HIGH;
}