dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
Json.hpp
1// SPDX-FileCopyrightText: 2025-2026 Vincent Leroy
2// SPDX-License-Identifier: MIT
3//
4// This file is part of dfx.
5//
6// Licensed under the MIT License. See the LICENSE file in the project root
7// for full license information.
8
9#pragma once
10
11// Third-party includes
12#include <nlohmann/json.hpp>
13
14namespace dfx::Graph
15{
16class Controller;
17} // !namespace dfx::Graph
18
20{
34class Json
35{
36public:
40 explicit Json(Controller const & graph);
41
57 nlohmann::json process() const;
58
59private:
60 Controller const & _graph;
61};
62} // !namespace dfx::Graph::Exporter
In-memory graph builder and mutation controller (nodes + channels) with optional connection verificat...
Definition Controller.hpp:63
Json(Controller const &graph)
Construct a JSON exporter for a given graph controller.
nlohmann::json process() const
Generate a JSON representation of the graph.
Definition Dot.hpp:25
Definition Node.hpp:43