MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ on_attach()

void MayaFlux::Kakshya::PlotProcessor::on_attach ( const std::shared_ptr< SignalSourceContainer > &  container)
overridevirtual

Called when this processor is attached to a container.

Parameters
containerContainer this processor is being attached to

This method provides an opportunity for the processor to:

  • Initialize container-specific state
  • Allocate resources needed for processing
  • Validate the container's data structure
  • Configure processing parameters based on container properties
  • Store references or metadata needed for processing

Unlike BufferProcessor which may be attached implicitly through chains, DataProcessor attachment is typically an explicit operation that triggers immediate initialization.

Implements MayaFlux::Kakshya::DataProcessor.

Definition at line 131 of file PlotProcessor.cpp.

132{
133 if (!std::dynamic_pointer_cast<PlotContainer>(container))
134 MF_ERROR(C, X, "PlotProcessor requires a PlotContainer");
135}
#define MF_ERROR(comp, ctx,...)

References MF_ERROR.