From 17675f1c6447b6e014b520608ce6d5f1f2e9707a Mon Sep 17 00:00:00 2001
From: xuxiuxi <554325746@qq.com>
Date: 星期一, 04 三月 2019 16:28:42 +0800
Subject: [PATCH] add models, daos and controllers for tables.

---
 QiaoJiaSystem/VideoAnalysFromHC/main.cpp |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp
index cfb0eba..a82bf09 100644
--- a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp
+++ b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp
@@ -42,8 +42,8 @@
 
 static void startRtspAnalysElement(LDBTool *_dbTool) {
     RtspAnalysElement rtspAnalysElement(_dbTool);
-    NewEncodeVideoManager  newEncodeVideoManager;
-    newEncodeVideoManager.start();
+//    NewEncodeVideoManager  newEncodeVideoManager;
+//    newEncodeVideoManager.start();
     while (1) {
         sleep(1 * 60 * 60 * 12);
     }
@@ -66,10 +66,18 @@
 
 int main(int argc, char **argv) {
     SAVE_APP_ARGS
-    ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
+    std::cout<<__DATE__<<" "<<__TIME__<<std::endl;
+#ifdef GLOG
+        ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
+#endif
 
     appPref.setLongData("gpu.index", 0);
     appPref.setIntData("show.image", 0);
+
+    //todo
+    appPref.setIntData("CamStart", atoi(argv[1]));
+    appPref.setIntData("CamStep", atoi(argv[2]));
+    appPref.setIntData("RpcServerPort",atoi(argv[3]));
 
     //#todo get from config File
 //    appPref.setStringData("ipAdd", "192.168.1.185");
@@ -126,7 +134,7 @@
     appPref.setStringData("fxDevID", rec.dev_id.toStdString());
     appPref.setStringData("fxDevNAME", rec.dev_name.toStdString());
     appPref.setStringData("user.loop.absolute.path", appConfig.getStringProperty("cutPath"));
-
+    appPref.setStringData("clusterID", appConfig.getStringProperty("clusterID"));
 
     bool loopRet = true;
     while (loopRet) {

--
Gitblit v1.8.0