TransformPipeline
TransformPipeline
Factory and execution engine for transformation pipelines.
#include <TransformPipeline.hpp>
Public Functions
| Name | |
|---|---|
| TransformPipeline(DataManager * data_manager, TransformRegistry * registry) Construct a new Transform Pipeline object. |
|
| bool | loadFromJson(nlohmann::json const & json_config) Load pipeline configuration from JSON. |
| bool | loadFromJsonFile(std::string const & json_file_path) Load pipeline configuration from JSON file. |
| PipelineResult | execute(PipelineProgressCallback progress_callback =[nullptr]) Execute the loaded pipeline. |
| StepResult | executeStep(PipelineStep const & step, ProgressCallback progress_callback =[nullptr]) Execute a single pipeline step. |
| std::vector< std::string > | validate() const Validate the pipeline configuration. |
| std::vector< PipelineStep > const & | getSteps() const Get the loaded pipeline steps. |
| nlohmann::json const & | getMetadata() const Get pipeline metadata. |
| void | clear() Clear the current pipeline configuration. |
| nlohmann::json | exportToJson() const Export current pipeline to JSON. |
| bool | saveToJsonFile(std::string const & json_file_path) const Save current pipeline to JSON file. |
Public Functions Documentation
function TransformPipeline
TransformPipeline(
DataManager * data_manager,
TransformRegistry * registry
)Construct a new Transform Pipeline object.
Parameters:
- data_manager Pointer to the data manager
- registry Pointer to the transform registry
function loadFromJson
bool loadFromJson(
nlohmann::json const & json_config
)Load pipeline configuration from JSON.
Parameters:
- json_config JSON configuration object
Return:
- true if configuration was loaded successfully
- false if there were errors in the configuration
function loadFromJsonFile
bool loadFromJsonFile(
std::string const & json_file_path
)Load pipeline configuration from JSON file.
Parameters:
- json_file_path Path to JSON configuration file
Return:
- true if configuration was loaded successfully
- false if file couldn’t be read or parsed
function execute
PipelineResult execute(
PipelineProgressCallback progress_callback =nullptr
)Execute the loaded pipeline.
Parameters:
- progress_callback Optional progress callback
Return: PipelineResult containing execution results
function executeStep
StepResult executeStep(
PipelineStep const & step,
ProgressCallback progress_callback =nullptr
)Execute a single pipeline step.
Parameters:
- step The step to execute
- progress_callback Optional progress callback for the step
Return: StepResult containing execution result
function validate
std::vector< std::string > validate() constValidate the pipeline configuration.
Return: std::vector
function getSteps
inline std::vector< PipelineStep > const & getSteps() constGet the loaded pipeline steps.
Return: std::vector
function getMetadata
inline nlohmann::json const & getMetadata() constGet pipeline metadata.
Return: nlohmann::json const& Reference to metadata
function clear
void clear()Clear the current pipeline configuration.
function exportToJson
nlohmann::json exportToJson() constExport current pipeline to JSON.
Return: nlohmann::json JSON representation of the pipeline
function saveToJsonFile
bool saveToJsonFile(
std::string const & json_file_path
) constSave current pipeline to JSON file.
Parameters:
- json_file_path Path where to save the pipeline
Return:
- true if saved successfully
- false if there was an error saving
Updated on 2026-11-13 at 20:25:39 +0000