You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef __OBJECTEVENTREPORT_H_INCL__
#define __OBJECTEVENTREPORT_H_INCL__
#include <time.h>
#include <vector>
#include "../base/basicFunctionality.h"
#include "../base/basicEventHandler.h"
#include "../../data/storage/storageProvider.h"
#include "../base/basicSettings.h"
#include "../base/basicReportRecord.h"
#include "../base/basicCamera.h"
/**
* TODO: Add class description * * @author Gagua */typedef struct S_REPORT_RECORD { uint32_t ms; //4
uint16_t ums; //2
uint8_t cls_id; //1
uint8_t type; //1
uint32_t src; //4
uint8_t media_type; //1
uint32_t media_marker; //4
uint8_t media_count; //1
//----------------------------------- 18 bytes = Fixed Size Header
char ** media_names; uint16_t data_size; void * data;}REPORT_RECORD;typedef std::vector<char*> Rere;
class mediaVideoSourceManager;
class objectEventReport : public basicEventHandler { private: storageProvider * m_pStorageProvider; basicSettings * m_pSettingsEngine; mediaVideoSourceManager * m_pMediaManager; char m_pReportFileName[MAX_PATH]; bool saveReportRecord(REPORT_RECORD *Record); bool getMedia(REPORT_RECORD* Record); bool prefill(REPORT_RECORD* Record); REPORT_RECORD * loadReportRecord(FILE* FD); Rere m_vLoaddedReports; public: static objectEventReport *getInstance(void); virtual ~objectEventReport(void); void dispatchEvent( basicEvent *Evt); bool loadReportList(struct tm *LTM); Rere * getLoaddedReports(void); private: static objectEventReport *_instance; protected: objectEventReport(void);};
// TODO: Uncomment the copy constructor when you need it.
//inline objectEventReport::objectEventReport(const objectEventReport& src)
//{
// // TODO: copy
//}
// TODO: Uncomment the assignment operator when you need it.
//inline objectEventReport& objectEventReport::operator=(const objectEventReport& rhs)
//{
// if (this == &rhs) {
// return *this;
// }
//
// // TODO: assignment
//
// return *this;
//}
#endif // __OBJECTEVENTREPORT_H_INCL__
|