xref: /haiku/src/apps/debuganalyzer/gui/chart/ChartDataSource.h (revision e81a954787e50e56a7f06f72705b7859b6ab06d1)
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