![]() |
dfx 0.1.0
Linux-based dynamic dataflow executor
|
Export a dfx::Graph::Controller as a JSON document. More...
#include <dfx-graph/exporter/Json.hpp>
Public Member Functions | |
| Json (Controller const &graph) | |
| Construct a JSON exporter for a given graph controller. | |
| nlohmann::json | process () const |
| Generate a JSON representation of the graph. | |
Export a dfx::Graph::Controller as a JSON document.
The exporter references the provided graph controller; it does not take ownership and assumes the controller outlives the exporter instance.
Typicall usage:
| dfx::Graph::Exporter::Json::Json | ( | Controller const & | graph | ) |
Construct a JSON exporter for a given graph controller.
| graph | Graph controller to export (must outlive this object). |
| nlohmann::json dfx::Graph::Exporter::Json::process | ( | ) | const |
Generate a JSON representation of the graph.
Output schema (high level):