#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
|