1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef CHART_DATA_SOURCE_H 6 #define CHART_DATA_SOURCE_H 7 8 #include <SupportDefs.h> 9 10 #include "chart/ChartDataRange.h" 11 12 13 class ChartDataSource { 14 public: 15 virtual ~ChartDataSource(); 16 17 virtual ChartDataRange Domain() const = 0; 18 virtual ChartDataRange Range() const = 0; 19 20 virtual void GetSamples(double start, double end, 21 double* samples, int32 count) = 0; 22 }; 23 24 #endif // CHART_DATA_SOURCE_H 25