|
@@ -9,7 +9,7 @@
|
|
|
|
|
|
#include "plog/Log.h"
|
|
#include "plog/Log.h"
|
|
#include "plog/Initializers/RollingFileInitializer.h"
|
|
#include "plog/Initializers/RollingFileInitializer.h"
|
|
-#include "graph/graph.hpp"
|
|
|
|
|
|
+#include "pipeline/pipeline.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -21,16 +21,16 @@ int main(int argc , char* argv[])
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|
|
const char* json_path = argv[1];
|
|
const char* json_path = argv[1];
|
|
- Graph::Graph graph_manager;
|
|
|
|
- graph_manager.create_from_json(std::string(json_path));
|
|
|
|
|
|
+ Pipe::PipelineManager pipeline_manager;
|
|
|
|
+ pipeline_manager.create_from_json(std::string(json_path));
|
|
|
|
|
|
- for (const auto& p : graph_manager.getPipelines()) {
|
|
|
|
|
|
+ for (const auto& p : pipeline_manager.getPipelines()) {
|
|
std::cout << "Pipeline ID: " << p.pipeline_id << ", Description: " << p.description << ", Nodes: " << p.nodes.size() << std::endl;
|
|
std::cout << "Pipeline ID: " << p.pipeline_id << ", Description: " << p.description << ", Nodes: " << p.nodes.size() << std::endl;
|
|
for(const auto& node : p.nodes) {
|
|
for(const auto& node : p.nodes) {
|
|
std::cout << " - Node Name: " << node->get_name() << std::endl;
|
|
std::cout << " - Node Name: " << node->get_name() << std::endl;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- graph_manager.start_pipelines();
|
|
|
|
|
|
+ pipeline_manager.start_pipelines();
|
|
getchar();
|
|
getchar();
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|