12#include <nlohmann/json.hpp>
15#include "Controller.hpp"
16#include <dfx-utilities/FileSystem.hpp>
In-memory graph builder and mutation controller (nodes + channels) with optional connection verificat...
Definition Controller.hpp:213
Helper that loads a graph into a Controller from a JSON file or JSON object.
Definition Loader.hpp:110
static LoadingResult loadFromJson(nlohmann::json const &json, Controller &controller, LoaderOptions const &options={})
Load a graph from an in-memory JSON object into a controller.
static LoadingResult loadFromFile(fs::path const &path, Controller &controller, LoaderOptions const &options={})
Load a graph JSON file into a controller.
Options controlling graph loading behavior.
Definition Loader.hpp:27
bool startNodes
Start newly created nodes after a successful load.
Definition Loader.hpp:44
std::size_t errorLimit
Maximum number of channel-verification errors to collect per channel creation.
Definition Loader.hpp:35
Identifiers of nodes and channels created by a load operation.
Definition Loader.hpp:60
std::vector< Core::Node::Id > nodeIds
Node ids created by the load operation.
Definition Loader.hpp:62
std::vector< Core::Channel::Id > channelIds
Channel ids created by the load operation.
Definition Loader.hpp:64