dfx 0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
dfx::Graph::LoaderOptions Struct Reference

Options controlling graph loading behavior. More...

#include <dfx-graph/Loader.hpp>

Public Attributes

std::size_t errorLimit = 10
 Maximum number of channel-verification errors to collect per channel creation.
bool startNodes = false
 Start newly created nodes after a successful load.

Detailed Description

Options controlling graph loading behavior.

These options are consumed by Loader when building a graph from a .dfx JSON document (file or in-memory JSON).

Member Data Documentation

◆ errorLimit

std::size_t dfx::Graph::LoaderOptions::errorLimit = 10

Maximum number of channel-verification errors to collect per channel creation.

This value is forwarded to dfx::Graph::Controller::addChannel() as the errorLimit parameter. It limits the number of human-readable errors produced by channel verification (mime-type / kind compatibility) before truncation.

A value of 0 means "no limit".

◆ startNodes

bool dfx::Graph::LoaderOptions::startNodes = false

Start newly created nodes after a successful load.

When enabled, Loader will call node->start() for each node created during this load operation, after nodes and channels have been created successfully.

Nodes that already existed in the controller before loading are not started by this option.


The documentation for this struct was generated from the following file: