00001 00002 #include <qobject.h> 00003 #include "midobasic.h" 00004 #include "midobuffer.h" 00005 00006 class Buffer : QObject 00007 { 00008 Q_OBJECT 00009 public: 00010 Buffer(); 00011 ~Buffer() {} 00012 00013 DValueList getDate(double x1, double x2); 00014 DValueList getDate(double xi, int size); 00015 DValueList getDate(int p1, int p2); 00016 DValueList* getDate(); 00017 DValueList getLastDate(); 00018 void setMaxSize(double max); 00019 double getSize(); 00020 double getMaxSize(); 00021 00022 private: 00023 DValueList *botte, elementsEstract, *botteBuffer; 00024 double dimension, dimension2, maxSize, lastLength, precLength; 00025 00026 public slots: 00027 void reset(); 00028 void entryDate(DValueList* values); 00029 00030 }; 00031