![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
commit
Dependencies: MPU6050_SIM5320_TEST
Fork of MPU_SDCARD by
DataLogger/DataLogger.h
- Committer:
- suads
- Date:
- 2017-11-10
- Revision:
- 1:75966605a6a3
File content as of revision 1:75966605a6a3:
#ifndef _DATALOGGER_H #define _DATALOGGER_H //#include "DataLogger.h" #include <stdint.h> #define DATASIZE 20 using namespace std; //*************************************************************LOGGER**************************************************************************// template<class T> class DataLogger{ private: T _datalist[DATASIZE]; int _index; public: DataLogger(){//cout<<"Default Constructor"<<endl; for(int i=0;i<DATASIZE;i++) _datalist[i]._date=0; _index=-1;} DataLogger(T b){//cout<<"Constructor"<<endl; _index=-1;} void savelog(T templog); void print(); uint16_t getsize(); uint8_t position(); T* getfirst(); T* getlast(); uint16_t getnumberOfDays(); T* getLastStop(); }; #endif