aboutsummaryrefslogtreecommitdiff
path: root/NodeOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NodeOutput.cpp')
-rw-r--r--NodeOutput.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/NodeOutput.cpp b/NodeOutput.cpp
new file mode 100644
index 0000000..00ca006
--- /dev/null
+++ b/NodeOutput.cpp
@@ -0,0 +1,21 @@
+#include "NodeOutput.h"
+#include "Exception.h"
+
+#include <iostream>
+
+NodeOutput NodeOutput::instance(NodeOutput::type);
+
+NodeOutput::NodeOutput(const char * type) : Node(type) { }
+
+void NodeOutput::sim() {
+ if (this->inputs.size() == 0)
+ throw CircuitException("No inputs on probe");
+
+ std::cout << this->inputs[0]->getLevel() << "foo" << std::endl;
+}
+
+NodeOutput::NodeOutput(const NodeOutput * prototype) : Node() { }
+
+NodeOutput * NodeOutput::clone() const {
+ return new NodeOutput(this);
+} \ No newline at end of file