AnalogDataAdapter
AnalogDataAdapter
Adapter that exposes AnalogTimeSeries as an IAnalogSource. More…
#include <AnalogDataAdapter.h>
Inherits from IAnalogSource
Public Functions
| Name | |
|---|---|
| AnalogDataAdapter(std::shared_ptr< AnalogTimeSeries > analogData, std::shared_ptr< TimeFrame > timeFrame, std::string name) Constructs an AnalogDataAdapter. |
|
| std::string const &override | getName() const Gets the name of this data source. |
| std::shared_ptr< TimeFrame > | getTimeFrame() const override Gets the TimeFrame the data belongs to. |
| size_t | size() const override Gets the total number of samples in the source. |
| virtual std::vector< float > | getDataInRange(TimeFrameIndex start, TimeFrameIndex end, TimeFrame const * target_timeFrame) override Gets the data within a specific time range. |
Additional inherited members
Public Functions inherited from IAnalogSource
| Name | |
|---|---|
| virtual | ~IAnalogSource() =default |
Detailed Description
class AnalogDataAdapter;Adapter that exposes AnalogTimeSeries as an IAnalogSource.
This adapter provides a bridge between the existing AnalogTimeSeries class and the IAnalogSource interface required by the TableView system.
Public Functions Documentation
function AnalogDataAdapter
AnalogDataAdapter(
std::shared_ptr< AnalogTimeSeries > analogData,
std::shared_ptr< TimeFrame > timeFrame,
std::string name
)Constructs an AnalogDataAdapter.
Parameters:
- analogData Shared pointer to the AnalogTimeSeries source.
- timeFrame Shared pointer to the TimeFrame this data belongs to.
- name The name of this data source.
function getName
std::string const &override getName() constGets 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
std::shared_ptr< TimeFrame > getTimeFrame() const overrideGets the TimeFrame the data belongs to.
Return: A shared pointer to the TimeFrame.
function size
size_t size() const overrideGets 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
) overrideGets 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.
Reimplements: IAnalogSource::getDataInRange
This gets the data in the range [start, end] (inclusive) from the source timeframe
Updated on 2026-11-13 at 20:25:41 +0000