summaryrefslogtreecommitdiff
path: root/NT/src/graph.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-01-20 15:39:23 +0000
committerTim Redfern <tim@eclectronics.org>2014-01-20 15:39:23 +0000
commit6ae7506f595d45e752ffd0cebb6392c707db2d3c (patch)
tree761d0cf5f42a1c14bb4ce9d2023ab65d59b77520 /NT/src/graph.h
parent344e9b1a484b361cac7b07500cb7d2699cc93c29 (diff)
making json loader
Diffstat (limited to 'NT/src/graph.h')
-rw-r--r--NT/src/graph.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/NT/src/graph.h b/NT/src/graph.h
index c61d385..05eaa04 100644
--- a/NT/src/graph.h
+++ b/NT/src/graph.h
@@ -8,7 +8,12 @@ Graph object manages a collection of nodes and provides the interface for render
*/
#include "rotor.h"
+#include "factory.h"
+#include "Poco/File.h"
+#include "Poco/FileStream.h"
+#include "Poco/CountingStream.h"
+#include "Poco/StreamCopier.h"
namespace Rotor {
class Graph{
@@ -44,9 +49,8 @@ namespace Rotor {
Node* find_node(const std::string &type);
Json::Value signal_render(const std::string &node,const double framerate);
bool video_render(const std::string &output_filename,const double framerate,int start, int end);
- bool load(std::string data ,std::string media_path);
- bool loadFile(std::string &filename,std::string media_path);
- bool parseJson(std::string &data,std::string &media_path);
+ bool load_file(std::string filename,std::string media_path);
+ bool parse_json(std::string &data,std::string &media_path);
Json::Value preview(std::string &node ,std::string &format,int frame,int w,int h);
bool check_audio (std::string audio ,std::string path);
Json::Value print_features (std::string &node);