派生自 development/c++

pansen
2019-03-07 979bc003bce710bf300bc2bd87a8278585678763
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef LOOPRECORDVIDEOI_H
#define LOOPRECORDVIDEOI_H
 
#include "RecordVideo.h"
#include <iostream>
#include <thread>
#include <QtCore/QMap>
#include "LoopVideoRecorder.h"
#include "TimerElement.h"
#include <mutex>
#include "../VideoServer/QiaoJia/DB/LDBTool.h"
class LoopRecordVideoI : public ::RecordVideo::LoopRecorder, TimerElement {
public:
    LoopRecordVideoI(int interval = 10000);
 
    ~LoopRecordVideoI();
 
    ::std::string addCamera(const ::std::string &index, const ::std::string &t_rtsp, const ::Ice::Current & = ::Ice::emptyCurrent);
 
    void removeCamera(const ::std::string &index, const ::Ice::Current & = ::Ice::emptyCurrent);
 
    void clearCamera(const ::Ice::Current & = ::Ice::emptyCurrent);
 
    void feedDog(const ::std::string &index, const ::Ice::Current & = ::Ice::emptyCurrent);
 
    void timerFunc();
 
private:
 
    QMap<std::string, LoopVideoRecorder *> m_mapRecorders;
    QMap<std::string, QDateTime> m_mapFeedDogTime;
    std::mutex m_mutex;
    std::mutex m_map_mutex;
    LDBTool* db_c;
};
 
#endif // LOOPRECORDVIDEOI_H