Files
Upsilon/apps/data.h
Émilie Feral 4841bdb8af [apps] Create an abstract class of data model and of data controller
Change-Id: I764b07bde5f81068eaeebed80969f410495bf6b6
2017-01-09 15:08:55 +01:00

20 lines
508 B
C++

#ifndef APPS_DATA_H
#define APPS_DATA_H
class Data {
public:
Data();
virtual void deletePairAtIndex(int index) = 0;
virtual void setXValueAtIndex(float f, int index) = 0;
virtual void setYValueAtIndex(float f, int index) = 0;
virtual float xValueAtIndex(int index) = 0;
virtual float yValueAtIndex(int index) = 0;
int numberOfPairs();
// TODO: decide the max number of elements after optimization
constexpr static int k_maxNumberOfPairs = 500;
protected:
int m_numberOfPairs;
};
#endif