From a97b6c212920c2d14f506169ef0cdea27112c8c1 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期六, 09 三月 2019 18:24:44 +0800
Subject: [PATCH] 解决按国标或本地类型获取camera设备
---
syncDBTool/SyncDB.hpp | 35 +++++++++++++++++++++++++++++++++--
1 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/syncDBTool/SyncDB.hpp b/syncDBTool/SyncDB.hpp
index 82919ca..20edb66 100755
--- a/syncDBTool/SyncDB.hpp
+++ b/syncDBTool/SyncDB.hpp
@@ -21,6 +21,8 @@
update_time,
img,
idcard,
+ enable,
+ monLevel,
evEnd
};
@@ -36,6 +38,8 @@
map_Fea_InfoString2Values["update_time"] = Feature_InfoStringValue::update_time;
map_Fea_InfoString2Values["img"] = Feature_InfoStringValue::img;
map_Fea_InfoString2Values["idcard"] = Feature_InfoStringValue::idcard;
+ map_Fea_InfoString2Values["enable"] = Feature_InfoStringValue::enable;
+ map_Fea_InfoString2Values["monitorLevel"] = Feature_InfoStringValue::monLevel;
map_Fea_InfoString2Values["end"] = evEnd;
}
@@ -81,6 +85,12 @@
case Feature_InfoStringValue::idcard:
idcard = value;
break;
+ case Feature_InfoStringValue::enable:
+ enable = value;
+ break;
+ case Feature_InfoStringValue::monLevel:
+ monLevel = value;
+ break;
default:
ERR(key << " is an invalid string. s_mapStringValues now contains "
<< map_Fea_InfoString2Values.size() << " entries.");
@@ -102,6 +112,9 @@
std::string update_time;
std::string img;
std::string idcard;
+ std::string enable;
+ std::string monLevel;
+
// value is a atom: atomSize:19, atomValue:test@192.168.50.216
// value is a list:2018-08-08 20:17:11
@@ -271,6 +284,9 @@
tab_uuid,
tab_startTime,
tab_endTime,
+ tab_uploadFlag,
+ tab_cmpThreshold,
+ tab_enabled,
tab_evEnd
};
@@ -290,6 +306,9 @@
map_Tab_InfoString2Values["uuid"] = Table_InfoStringValue::tab_uuid;
map_Tab_InfoString2Values["startTime"] = Table_InfoStringValue::tab_startTime;
map_Tab_InfoString2Values["endTime"] = Table_InfoStringValue::tab_endTime;
+ map_Tab_InfoString2Values["uploadFlag"] = Table_InfoStringValue::tab_uploadFlag;
+ map_Tab_InfoString2Values["cmpThreshold"] = Table_InfoStringValue::tab_cmpThreshold;
+ map_Tab_InfoString2Values["enabled"] = Table_InfoStringValue::tab_enabled;
map_Tab_InfoString2Values["end"] = Table_InfoStringValue::tab_evEnd;
}
@@ -299,8 +318,8 @@
struct Table_Info {
public:
Table_Info() :
- create_by(""), create_time(""), del_flag(""), tableDesc(""), tableName(""), tableType(""),
- update_time(""), uuid(""), bwType(""), startTime(""), endTime("") {
+ create_by(""), create_time(""), del_flag(""), tableDesc(""), tableName(""), tableType(""), update_time(""),
+ uuid(""), bwType(""), startTime(""), endTime(""), uploadFlag(""), cmpThreshold(""), enabled("") {
// Initialize();
}
@@ -351,6 +370,15 @@
case Table_InfoStringValue::tab_endTime:
endTime = value;
break;
+ case Table_InfoStringValue::tab_uploadFlag:
+ uploadFlag = value;
+ break;
+ case Table_InfoStringValue::tab_cmpThreshold:
+ cmpThreshold = value;
+ break;
+ case Table_InfoStringValue::tab_enabled:
+ enabled = value;
+ break;
default:
ERR(key << " is an invalid string. s_mapStringValues now contains "
<< map_Fea_InfoString2Values.size() << " entries.");
@@ -376,6 +404,9 @@
std::string bwType;
std::string startTime;
std::string endTime;
+ std::string uploadFlag;
+ std::string cmpThreshold;
+ std::string enabled;
private:
};
--
Gitblit v1.8.0