Skip to main content

Neuralyzer::DataManagerPipeline

Neuralyzer::DataManagerPipeline

Classes

Name
struct Neuralyzer::DataManagerPipeline::JsonPipelineOptions
Options controlling JSON pipeline execution.
struct Neuralyzer::DataManagerPipeline::JsonPipelineResult
Result from running a JSON DataManager pipeline.

Types

Name
enum class JsonPipelinePhase { None, Parse, Normalize, LoadAndTransform, Command, Save}
Pipeline phase identifiers used for structured failure reporting.

Functions

Name
std::string phaseToString(JsonPipelinePhase phase)
Convert a pipeline phase to a stable diagnostic string.
JsonPipelineResult runJsonPipeline(DataManager & data_manager, nlohmann::json const & config, std::string const & base_path, JsonPipelineOptions const & options ={})
Run a DataManager JSON pipeline from an already parsed config.
JsonPipelineResult runJsonPipelineFile(DataManager & data_manager, std::string const & json_filepath, JsonPipelineOptions const & options ={})
Run a DataManager JSON pipeline from a config file.

Types Documentation

enum JsonPipelinePhase

Enumerator Value Description
None
Parse
Normalize
LoadAndTransform
Command
Save

Pipeline phase identifiers used for structured failure reporting.

Functions Documentation

function phaseToString

std::string phaseToString(
    JsonPipelinePhase phase
)

Convert a pipeline phase to a stable diagnostic string.

Parameters:

  • phase Phase enum value to stringify.

Return: String representation suitable for logs and error messages.

Postcondition: Return value is never empty.

function runJsonPipeline

JsonPipelineResult runJsonPipeline(
    DataManager & data_manager,
    nlohmann::json const & config,
    std::string const & base_path,
    JsonPipelineOptions const & options ={}
)

Run a DataManager JSON pipeline from an already parsed config.

Parameters:

  • data_manager DataManager instance to mutate.
  • config Parsed JSON config in legacy array form or object-root form.
  • base_path Directory used by existing relative-path loader semantics.
  • options Execution options.

Return: Structured success/failure result.

Note: Not thread-safe — caller must synchronize if accessing DataManager from multiple threads.

Precondition: The DataManager object must remain valid for the duration of the call.

Postcondition: On success, all enabled phases have completed.

function runJsonPipelineFile

JsonPipelineResult runJsonPipelineFile(
    DataManager & data_manager,
    std::string const & json_filepath,
    JsonPipelineOptions const & options ={}
)

Run a DataManager JSON pipeline from a config file.

Parameters:

  • data_manager DataManager instance to mutate.
  • json_filepath Path to a readable JSON configuration file.
  • options Execution options.

Return: Structured success/failure result.

Note: Not thread-safe — caller must synchronize if accessing DataManager from multiple threads.

Precondition:

  • The DataManager object must remain valid for the duration of the call.
  • json_filepath must name a readable JSON file.

Postcondition: On success, all enabled phases have completed.


Updated on 2026-11-13 at 20:25:41 +0000