派生自 development/c++

miyanhui
2019-02-13 dccc8c41c31866785fdaf5cba40354cdc7afbd8f
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
38
39
40
41
42
#ifndef PERIMETERALARMMANAGER_H
#define PERIMETERALARMMANAGER_H
#include "../PerimeterAlarm/AppPaController.h"
class ControllerConfig;
class LDBTool;
class FastFdsWithLock;
class PerimeterAlarmManager
{
public:
    PerimeterAlarmManager(LDBTool *_dbTool);
    virtual ~PerimeterAlarmManager();
private:
 
    int PA_addCamera(int index, const ControllerConfig& config);
 
    int PA_removeCamera(int index);
 
 
    int PA_removeAll();
 
    /* 功能:判断某个index是否在此进程中
    params:
        index 摄像头index
    return value:
        true表示在此进程中,false表示不在
    */
    bool PA_hasIndex(int index);
 
    void printConfigInfo(const ControllerConfig& config);
 
    void init();
 
    std::string resetFdfs(std::string ip = "", unsigned int port = 0, std::string content = "");
 
    //static std::vector<int> chnString2Vec(std::string str_list);
private:
     LDBTool* m_lDBTool;
     FastFdsWithLock fdfsClient;
     std::map<int, AppPaController*> g_mapControls;
};
 
#endif // PERIMETERALARMMANAGER_H