Skip to main content

IAnalogSource

IAnalogSource

Interface for any data source that can be viewed as an analog signal. More…

#include <IAnalogSource.h>

Inherited by AnalogDataAdapter, MockAnalogSource, MockAnalogSource, MockAnalogSource

Public Functions

Name
virtual ~IAnalogSource() =default
virtual std::string const & getName() const =0
Gets the name of this data source.
virtual std::shared_ptr< TimeFrame > getTimeFrame() const =0
Gets the TimeFrame the data belongs to.
virtual size_t size() const =0
Gets the total number of samples in the source.
virtual std::vector< float > getDataInRange(TimeFrameIndex start, TimeFrameIndex end, TimeFrame const * target_timeFrame) =0
Gets the data within a specific time range.

Detailed Description

class IAnalogSource;

Interface for any data source that can be viewed as an analog signal.

This abstract base class provides a common interface for any data that can be treated as a simple array of doubles. Implementations may represent physical data (like AnalogData) or virtual data (like PointComponentAdapter).

Public Functions Documentation

function ~IAnalogSource

virtual ~IAnalogSource() =default

function getName

virtual std::string const & getName() const =0

Gets the name of this data source.

Return: The name of the data source.

This name is used for dependency tracking and ExecutionPlan caching in the TableView system.

function getTimeFrame

virtual std::shared_ptr< TimeFrame > getTimeFrame() const =0

Gets the TimeFrame the data belongs to.

Return: A shared pointer to the TimeFrame.

function size

virtual size_t size() const =0

Gets the total number of samples in the source.

Return: The number of samples.

function getDataInRange

virtual std::vector< float > getDataInRange(
    TimeFrameIndex start,
    TimeFrameIndex end,
    TimeFrame const * target_timeFrame
) =0

Gets the data within a specific time range.

Parameters:

  • start The start index of the time range.
  • end The end index of the time range.
  • target_timeFrame The target time frame (from the caller) for the data.

Return: A vector of floats representing the data in the specified range.

Reimplemented by: AnalogDataAdapter::getDataInRange

This gets the data in the range [start, end] (inclusive) from the source timeframe


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