diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-12 14:01:17 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-12 14:01:17 +0200 |
commit | efa2f195a5f9c356318fb50532168fa2ee4c0979 (patch) | |
tree | f0e78786cd5b71ff0e389b7842f2a88f4b4f7358 /NodeOutput.cpp | |
parent | 72c9b98b074d98d60983b178b06e1872eb96c242 (diff) | |
parent | a7eb10e81568b65c39d6e1d042309916a9180a2b (diff) |
Merge branch 'master' of github.com:lonkaars/depa
Diffstat (limited to 'NodeOutput.cpp')
-rw-r--r-- | NodeOutput.cpp | 21 |
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 |