summaryrefslogtreecommitdiff
path: root/NT/src/rotor.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-05-22 08:36:24 +0100
committerTim Redfern <tim@eclectronics.org>2014-05-22 08:36:24 +0100
commitbb6498e5ff6a8a8af8c06300dac051659a37e89b (patch)
tree873cd3f3eba85e38c12995b077ce0db9ee82afab /NT/src/rotor.h
parentebc874413991fbc3d07493ece55f88f23e437af6 (diff)
NT figuring out type system
Diffstat (limited to 'NT/src/rotor.h')
-rw-r--r--NT/src/rotor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/NT/src/rotor.h b/NT/src/rotor.h
index 485ec8c..2ddf3ee 100644
--- a/NT/src/rotor.h
+++ b/NT/src/rotor.h
@@ -28,6 +28,7 @@ seperate framework? ie in Python- load server- send http commands
#include "xmlIO.h"
#include "libavwrapper.h"
+#include "cvimage.h"
#include "Poco/Logger.h"
#include "Poco/Channel.h"
@@ -330,7 +331,7 @@ namespace Rotor {
template <class NT> class Node_type : public Node {
public:
- virtual const NT& get_output(const Frame_parameters &frame){return value;};
+ virtual const NT& get_output(const Frame_parameters &frame){return result;};
void init(Json::Value settings){
if (!settings["vars"].empty()){
for ( uint32_t i = 0; i < settings["vars"].size(); ++i ) {
@@ -357,7 +358,7 @@ namespace Rotor {
return (dynamic_cast<Variable_array_type<IT>*>(vars[name]));
}
protected:
- NT value; //every node has an internal value so it can return a reference
+ NT result; //internal value is returned as a reference
};
}