GlobalInfo.cpp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. #include "GlobalInfo.h"
  2. #include <QSettings>
  3. #include "spdlog/spdlog.h"
  4. /* ====================================================================================
  5. * ******************************* 全局变量定义 **********************************
  6. * ====================================================================================*/
  7. int g_eventTimeVaild = 600; /* 事件时间有效性,单位秒,超过这个时间就认为是无效数据 */
  8. ActionList g_actionList; /* 全局算法列表 */
  9. /* ====================================================================================
  10. * *************************** DeviceInfo成员函数 *******************************
  11. * ====================================================================================*/
  12. /* 对比是否相等 */
  13. bool DeviceInfo::operator==(const DeviceInfo& other)
  14. {
  15. if(DeviceID != other.DeviceID) {
  16. return false;
  17. }
  18. else if(DeviceName != other.DeviceName || DeviceIP != other.DeviceIP) {
  19. return false;
  20. }
  21. else if(DeviceSerial != other.DeviceSerial || DeviceType != other.DeviceType) {
  22. return false;
  23. }
  24. else if(DevicePort != other.DevicePort || UserAccount != other.UserAccount || UserPassword != other.UserPassword) {
  25. return false;
  26. }
  27. return true;
  28. }
  29. /* 对比设备关联的算法信息是否相等 */
  30. bool DeviceInfo::isEqualAlgorithmInfo(const std::vector<AlgorithmInfo>& other)
  31. {
  32. /* 算法数目不相等,直接返回false */
  33. if(vecAlgorithmInfo.size() != other.size()) {
  34. return false;
  35. }else {
  36. /* 算法数目相等,进一步对比算法信息 */
  37. bool isEquality = true;
  38. /* 逐步对比算法信息 */
  39. for(const auto& it0 : vecAlgorithmInfo) {
  40. bool isEq2 = true;
  41. for(const auto& it1 : other) {
  42. if(it0 == it1) {
  43. continue;
  44. }else {
  45. isEq2 = false;
  46. break;
  47. }
  48. }
  49. if(!isEq2) {
  50. isEquality = false;
  51. break;
  52. }
  53. }
  54. if(!isEquality) {
  55. return false;
  56. }
  57. }
  58. return true;
  59. }
  60. /* ====================================================================================
  61. * ************************** AlarmInfo成员函数 ****************************
  62. * ====================================================================================*/
  63. AlarmInfo::AlarmInfo()
  64. {
  65. Is_Alarm = false;
  66. AlarmID = 0;
  67. DeviceID = 0;
  68. RoomID = 0;
  69. ChannelID = 0;
  70. State = 0;
  71. OnWork = 0;
  72. StartTime = "";
  73. EndTime = "";
  74. EventTime = "";
  75. PicUrl = "";
  76. ImageInfo = "";
  77. AppID = "";
  78. ActionID = "";
  79. ActionDes = "";
  80. FaceIDList = "";
  81. FaceNameList = "";
  82. BboxList = "";
  83. }
  84. AlarmInfo& AlarmInfo::operator=(AlarmInfo& other)
  85. {
  86. if(this != &other)
  87. {
  88. Is_Alarm = other.Is_Alarm;
  89. AlarmID = other.AlarmID;
  90. DeviceID = other.DeviceID;
  91. RoomID = other.RoomID;
  92. ChannelID = other.ChannelID;
  93. State = other.State;
  94. OnWork = other.OnWork;
  95. StartTime = other.StartTime;
  96. EndTime = other.EndTime;
  97. EventTime = other.EventTime;
  98. PicUrl = other.PicUrl;
  99. ImageInfo = other.ImageInfo;
  100. AppID = other.AppID;
  101. ActionID = other.ActionID;
  102. ActionDes = other.ActionDes;
  103. FaceIDList = other.FaceIDList;
  104. FaceNameList = other.FaceNameList;
  105. BboxList = other.BboxList;
  106. vecPersonInfo = other.vecPersonInfo;
  107. }
  108. return *this;
  109. }
  110. /* 清空内容 */
  111. void AlarmInfo::reInit()
  112. {
  113. Is_Alarm = false;
  114. AlarmID = 0;
  115. DeviceID = 0;
  116. RoomID = 0;
  117. ChannelID = 0;
  118. State = 0;
  119. OnWork = 0;
  120. StartTime = "";
  121. EndTime = "";
  122. EventTime = "";
  123. PicUrl = "";
  124. ImageInfo = "";
  125. AppID = "";
  126. ActionID = "";
  127. ActionDes = "";
  128. FaceIDList = "";
  129. FaceNameList = "";
  130. BboxList = "";
  131. }
  132. AlarmRuleInfo::AlarmRuleInfo()
  133. {
  134. LiveMinEnable = false;
  135. LiveMaxEnable = false;
  136. DicMinEnable = false;
  137. DicMaxEnable = false;
  138. LiveDicMinEnable = false;
  139. LiveDicMaxEnable = false;
  140. LiveMin = 0;
  141. LiveMax = 0;
  142. DicMin = 0;
  143. DicMax = 0;
  144. LiveDicMin = 0;
  145. LiveDicMax = 0;
  146. RuleName = "";
  147. }
  148. AlarmRuleInfo& AlarmRuleInfo::operator=(AlarmRuleInfo& other)
  149. {
  150. if(this != &other)
  151. {
  152. LiveMinEnable = other.LiveMinEnable;
  153. LiveMaxEnable = other.LiveMaxEnable;
  154. DicMinEnable = other.DicMinEnable;
  155. DicMaxEnable = other.DicMaxEnable;
  156. LiveDicMinEnable = other.LiveDicMinEnable;
  157. LiveDicMaxEnable = other.LiveDicMaxEnable;
  158. LiveMin = other.LiveMin;
  159. LiveMax = other.LiveMax;
  160. DicMin = other.DicMin;
  161. DicMax = other.DicMax;
  162. LiveDicMin = other.LiveDicMin;
  163. LiveDicMax = other.LiveDicMax;
  164. RuleName = other.RuleName;
  165. }
  166. return *this;
  167. }
  168. /* ====================================================================================
  169. * ************************** ListActionInfo成员函数 ****************************
  170. * ====================================================================================*/
  171. ActionInfo::ActionInfo()
  172. {
  173. RunState = RunTimeState::RUN_STATE_INIT;
  174. ChannelID = -1;
  175. RoomID = -1;
  176. CameraID = -1;
  177. RoomType = -1;
  178. ActionID = "";
  179. strRoomName = "";
  180. strActionName = "";
  181. }
  182. ActionInfo& ActionInfo::operator=(const ActionInfo& other)
  183. {
  184. if (this != &other)
  185. {
  186. ChannelID = other.ChannelID;
  187. RoomID = other.RoomID;
  188. CameraID = other.CameraID;
  189. ActionID = other.ActionID;
  190. strRoomName = other.strRoomName;
  191. RoomType = other.RoomType;
  192. }
  193. return *this;
  194. }
  195. bool ActionInfo::operator==(const ActionInfo& other)
  196. {
  197. if(ChannelID != other.ChannelID) {
  198. return false;
  199. }
  200. if(RoomID != other.RoomID) {
  201. return false;
  202. }
  203. if(CameraID != other.CameraID) {
  204. return false;
  205. }
  206. if(ActionID != other.ActionID) {
  207. return false;
  208. }
  209. if(RoomType != other.RoomType) {
  210. return false;
  211. }
  212. return true;
  213. }
  214. /* 对比除摄像机外的基础信息是否相等 */
  215. bool ActionInfo::isEqualBaseInfo(const ActionInfo& other)
  216. {
  217. if(ChannelID != other.ChannelID) {
  218. return false;
  219. }
  220. if(RoomID != other.RoomID) {
  221. return false;
  222. }
  223. if(ActionID != other.ActionID) {
  224. return false;
  225. }
  226. if(RoomType != other.RoomType) {
  227. return false;
  228. }
  229. return true;
  230. }
  231. /* 添加关联信息,会自动进行重复判断,如果已有相同的信息,则跳过 */
  232. bool ListActionInfo::insertActionInfo(ActionInfo* info)
  233. {
  234. /* 先判断是否已经在列表中了 */
  235. if(findActionInList(info) == nullptr)
  236. {
  237. ActionInfo* pActionInfo = new ActionInfo;
  238. *pActionInfo = *info;
  239. listActionInfo.push_back(pActionInfo);
  240. }
  241. return true;
  242. }
  243. /* 删除信息 */
  244. bool ListActionInfo::deleteActionInfo(ActionInfo* info)
  245. {
  246. if(info == nullptr)
  247. {
  248. return false;
  249. }
  250. if(findActionInList(info) != nullptr)
  251. {
  252. listActionInfo.remove(info);
  253. delete info;
  254. info = nullptr;
  255. }
  256. return true;
  257. }
  258. /* 给算法添加摄像机,原有的会被替换掉 */
  259. bool ListActionInfo::addActionCamera(ActionInfo* pInfo)
  260. {
  261. auto pActionInfo = findActionIDInListNoCamera(pInfo);
  262. if(pActionInfo != nullptr)
  263. {
  264. pActionInfo->CameraID = pInfo->CameraID;
  265. }
  266. return true;
  267. }
  268. /* 清空算法中的摄像机信息 */
  269. void ListActionInfo::clearCameraList()
  270. {
  271. for(auto& it0 : listActionInfo)
  272. {
  273. it0->CameraID = -1;
  274. }
  275. }
  276. /* 清空设置成STOP或ERROR的Action */
  277. void ListActionInfo::clearStopAction()
  278. {
  279. for(auto it0 = listActionInfo.begin(); it0 != listActionInfo.end();)
  280. {
  281. if(( (*it0)->RunState == RunTimeState::RUN_STATE_STOP) || ((*it0)->RunState == RunTimeState::RUN_STATE_ERROR))
  282. {
  283. delete *it0;
  284. it0 = listActionInfo.erase(it0);
  285. }else {
  286. ++it0;
  287. }
  288. }
  289. }
  290. /* 查找算法ID是否已在列表中 */
  291. ActionInfo* ListActionInfo::findActionInList(ActionInfo* pInfo)
  292. {
  293. for(const auto& it0 : listActionInfo)
  294. {
  295. if(*it0 == *pInfo)
  296. {
  297. return it0;
  298. }
  299. }
  300. return nullptr;
  301. }
  302. /* 查找算法ID是否在列表中,这里查找不会对比摄像机ID */
  303. ActionInfo* ListActionInfo::findActionIDInListNoCamera(ActionInfo* pInfo)
  304. {
  305. for(const auto& it0 : listActionInfo)
  306. {
  307. if(it0->isEqualBaseInfo(*pInfo))
  308. {
  309. return it0;
  310. }
  311. }
  312. return nullptr;
  313. }
  314. /* 清空容器 */
  315. void ListActionInfo::clear()
  316. {
  317. for(auto& it0 : listActionInfo)
  318. {
  319. delete it0;
  320. it0 = nullptr;
  321. }
  322. listActionInfo.clear();
  323. }
  324. /* ====================================================================================
  325. * *********************** ListRoomActionInfo成员函数 ***************************
  326. * ====================================================================================*/
  327. /* 对比频道信息、房间信息、算法ID是否相等 */
  328. bool RoomActionInfo::isEqualBaseInfo(const RoomActionInfo& other)
  329. {
  330. if(ChannelID != other.ChannelID) {
  331. return false;
  332. }
  333. if(RoomID != other.RoomID) {
  334. return false;
  335. }
  336. if(ActionID != other.ActionID) {
  337. return false;
  338. }
  339. if(RoomType != other.RoomType) {
  340. return false;
  341. }
  342. return true;
  343. }
  344. /* 添加关联信息,会自动进行重复判断,如果已有相同的room和action关联信息,则跳过 */
  345. bool ListRoomActionInfo::insertRoomActionInfo(const RoomActionInfo& info)
  346. {
  347. /* 先判断是否已经在列表中了 */
  348. if(findActionIDInList(info.ChannelID, info.RoomID, info.ActionID) == nullptr)
  349. {
  350. RoomActionInfo* pRoomActionInfo = new RoomActionInfo;
  351. *pRoomActionInfo = info;
  352. listRoomActionInfo.push_back(pRoomActionInfo);
  353. }
  354. return true;
  355. }
  356. /* 添加关联信息,会自动进行重复判断,如果已有相同的room和action关联信息,则跳过 */
  357. bool ListRoomActionInfo::insertRoomActionInfo(const int ChannelID, const int RoomID, const std::string& strActionID)
  358. {
  359. /* 先判断是否已经在列表中了 */
  360. if(findActionIDInList(ChannelID, RoomID, strActionID) == nullptr)
  361. {
  362. RoomActionInfo* pRoomActionInfo = new RoomActionInfo;
  363. pRoomActionInfo->RoomID = RoomID;
  364. pRoomActionInfo->ActionID = strActionID;
  365. listRoomActionInfo.push_back(pRoomActionInfo);
  366. }
  367. return true;
  368. }
  369. /* 删除一个容器,注意,这个不能在别的for循环中删除,只能单独删除 */
  370. bool ListRoomActionInfo::deleteRoomActionInfo(RoomActionInfo* pInfo)
  371. {
  372. if(pInfo == nullptr)
  373. {
  374. return false;
  375. }
  376. for(auto it0 = listRoomActionInfo.begin(); it0 != listRoomActionInfo.end(); ++it0)
  377. {
  378. if(*it0 == pInfo)
  379. {
  380. listRoomActionInfo.erase(it0);
  381. delete pInfo;
  382. pInfo = nullptr;
  383. return true;
  384. }
  385. }
  386. return false;
  387. }
  388. /* 清空容器 */
  389. void ListRoomActionInfo::clear()
  390. {
  391. for(auto& it0 : listRoomActionInfo)
  392. {
  393. delete it0;
  394. it0 = nullptr;
  395. }
  396. listRoomActionInfo.clear();
  397. }
  398. /* 添加算法信息,根据传入的算法信息,自动将其加入到对应的容器中 */
  399. void ListRoomActionInfo::addActionInfo(const ActionInfo& info)
  400. {
  401. auto pRAInfo = findActionIDInList(info.ChannelID, info.RoomID, info.ActionID);
  402. if(pRAInfo != nullptr)
  403. {
  404. pRAInfo->listCameraID.push_back(info.CameraID);
  405. }else {
  406. RoomActionInfo* pRoomActionInfo = new RoomActionInfo;
  407. pRoomActionInfo->ChannelID = info.ChannelID;
  408. pRoomActionInfo->RoomID = info.RoomID;
  409. pRoomActionInfo->ActionID = info.ActionID;
  410. pRoomActionInfo->RoomType = info.RoomType;
  411. pRoomActionInfo->strRoomName = info.strRoomName;
  412. pRoomActionInfo->listCameraID.push_back(info.CameraID);
  413. listRoomActionInfo.push_back(pRoomActionInfo);
  414. }
  415. }
  416. /* 清空算法对应的摄像机列表 */
  417. void ListRoomActionInfo::clearCameraList()
  418. {
  419. for(auto& it0 : listRoomActionInfo)
  420. {
  421. it0->listCameraID.clear();
  422. }
  423. }
  424. /* 清理设置为STOP或者ERROR的RoomAction */
  425. void ListRoomActionInfo::clearStopRoomAction()
  426. {
  427. for(auto it0 = listRoomActionInfo.begin(); it0 != listRoomActionInfo.end();)
  428. {
  429. if(( (*it0)->RunState == RunTimeState::RUN_STATE_STOP) || ((*it0)->RunState == RunTimeState::RUN_STATE_ERROR))
  430. {
  431. delete *it0;
  432. it0 = listRoomActionInfo.erase(it0);
  433. }else {
  434. ++it0;
  435. }
  436. }
  437. }
  438. /* 查找算法ID是否已在列表中 */
  439. RoomActionInfo* ListRoomActionInfo::findActionIDInList(const int chnID, const int RoomID, const std::string& strActionID)
  440. {
  441. for(const auto& it0 : listRoomActionInfo)
  442. {
  443. if((it0->RoomID == RoomID) && (it0->ActionID == strActionID) && (it0->ChannelID == chnID))
  444. {
  445. return it0;
  446. }
  447. }
  448. return nullptr;
  449. }
  450. FuncActionInfo::FuncActionInfo()
  451. {
  452. ChannelID = -1;
  453. appFunction = AppFunction::APP_NONE;
  454. RunState = RunTimeState::RUN_STATE_NONE;
  455. strFunctionName = "";
  456. StartTime = std::chrono::system_clock::now();
  457. EndTime = std::chrono::system_clock::now();
  458. listRoomCamActInfo.clear();
  459. }
  460. FuncActionInfo& FuncActionInfo::operator=(FuncActionInfo& other)
  461. {
  462. if(this != &other)
  463. {
  464. ChannelID = other.ChannelID;
  465. appFunction = other.appFunction;
  466. RunState = other.RunState;
  467. strFunctionName = other.strFunctionName;
  468. StartTime = other.StartTime;
  469. EndTime = other.EndTime;
  470. listRoomCamActInfo = other.listRoomCamActInfo;
  471. }
  472. return *this;
  473. }
  474. /* 添加算法信息 */
  475. bool FuncActionInfo::addActionInfo(const ActionInfo& info)
  476. {
  477. /* 根据此类的功能,添加算法信息 */
  478. if(appFunction == AppFunction::APP_NONE)
  479. {
  480. return false;
  481. }
  482. /* 将其添加到对应的房间 */
  483. bool isFind = false;
  484. for(auto& it0 : listRoomCamActInfo)
  485. {
  486. if((it0.RoomID == info.RoomID) && (it0.RoomType == info.RoomType))
  487. {
  488. isFind = true;
  489. it0.mapCameraAction.insert(std::make_pair(info.CameraID, info.ActionID));
  490. }
  491. }
  492. /* 没找到这个房间,就创建 */
  493. if(!isFind)
  494. {
  495. RoomCamActInfo roomCamActInfo;
  496. roomCamActInfo.RoomID = info.RoomID;
  497. roomCamActInfo.RoomType = info.RoomType;
  498. roomCamActInfo.mapCameraAction.insert(std::make_pair(info.CameraID, info.ActionID));
  499. listRoomCamActInfo.push_back(roomCamActInfo);
  500. }
  501. return true;
  502. }
  503. /**
  504. * @brief 添加功能信息,一个应用功能在一个频道内只有一个实例
  505. *
  506. * @param func 应用功能
  507. * @return true 添加成功,或者已有这个应用功能
  508. * @return false
  509. */
  510. bool ListFuncActInfo::addFuncActionInfo(AppFunction func)
  511. {
  512. if(func == AppFunction::APP_NONE)
  513. {
  514. return false;
  515. }
  516. /* 先查找有没有这个应用信息 */
  517. if(findAppFunction(func))
  518. {
  519. return true;
  520. }
  521. FuncActionInfo* pFuncActionInfo = new FuncActionInfo;
  522. pFuncActionInfo->appFunction = func;
  523. listFuncActionInfo.push_back(pFuncActionInfo);
  524. return true;
  525. }
  526. /**
  527. * @brief 添加算法信息,根据传进来的算法ID,将其加入到对应的功能中
  528. *
  529. * @param info
  530. * @return true
  531. * @return false
  532. */
  533. bool ListFuncActInfo::addActionInfo(const ActionInfo& info)
  534. {
  535. if(info.ActionID.empty())
  536. {
  537. return false;
  538. }
  539. /* 人脸识别算法 */
  540. if(info.ActionID == g_actionList.ActFace)
  541. {
  542. }
  543. return true;
  544. }
  545. /* 查找应用信息 */
  546. bool ListFuncActInfo::findAppFunction(const AppFunction func)
  547. {
  548. for(const auto& it0 : listFuncActionInfo)
  549. {
  550. if(it0->appFunction == func)
  551. {
  552. return true;
  553. }
  554. }
  555. return false;
  556. }
  557. /* 根据频率和功能查找实例 */
  558. FuncActionInfo* ListFuncActInfo::findAppFunction(const int ChannelID, const AppFunction func)
  559. {
  560. for(const auto& it0 : listFuncActionInfo)
  561. {
  562. if( (it0->appFunction == func) && (it0->ChannelID == ChannelID) )
  563. {
  564. return it0;
  565. }
  566. }
  567. return nullptr;
  568. }
  569. /* ====================================================================================
  570. * ************************** GlobalConfig成员函数 ******************************
  571. * ====================================================================================*/
  572. /* 创建实例 */
  573. GlobalConfig g_config;
  574. GlobalConfig::GlobalConfig()
  575. {
  576. ThreadSleepMS = 300;
  577. }
  578. /* 读取配置文件 */
  579. bool GlobalConfig::readConfig(const QString& strConfigFile)
  580. {
  581. if(strConfigFile.isEmpty())
  582. {
  583. SPDLOG_ERROR("读取配置文件失败! 配置文件名为空");
  584. return false;
  585. }
  586. SPDLOG_DEBUG("读取配置文件: {}", strConfigFile.toStdString());
  587. QSettings settings(strConfigFile, QSettings::IniFormat);
  588. settings.setIniCodec("UTF-8");
  589. settings.beginGroup("System");
  590. AppPeopleOnWork = settings.value("APPPEPOLEONWORK", 300).toInt(); /* 离岗时间 */
  591. Contraband = settings.value("APPBADTHING", 50).toInt(); /* 违禁物品出现的时间 */
  592. AppBadMan = settings.value("APPBADMAN", 50).toInt(); /* 非法入侵 */
  593. AppTired = settings.value("APPTIRED", 50).toInt(); /* 疲劳检测时间 */
  594. AppPeopleCont = settings.value("APPPEPOLECONT", 50).toInt(); /* 人员聚集时间 */
  595. AppPlayPhone = settings.value("APPPLAYPHONE", 50).toInt(); /* 玩手机识别 */
  596. AppMouse = settings.value("APPMOUSE", 50).toInt(); /* 手势识别 */
  597. AppMask = settings.value("APPMASK", 5).toInt(); /* 戴口罩识别 */
  598. CheckSet = settings.value("CHECKSET", 300).toInt(); /* 服务端多久检测一次配置 */
  599. EventTimeValid = settings.value("EventTimeValid", 300).toInt(); /* 事件时间有效期 */
  600. Key = settings.value("Key").toString().toStdString(); /* Key */
  601. Secret = settings.value("Secret").toString().toStdString(); /* Secret */
  602. settings.endGroup();
  603. if(Key.empty() || Secret.empty())
  604. {
  605. SPDLOG_ERROR("读取配置文件失败! Key或Secret为空");
  606. return false;
  607. }
  608. return true;
  609. }
  610. /* 打印读取到的值 */
  611. void GlobalConfig::printValue()
  612. {
  613. SPDLOG_INFO("APPPEPOLEONWORK: {}", AppPeopleOnWork);
  614. SPDLOG_INFO("APPBADTHING: {}", Contraband);
  615. SPDLOG_INFO("APPBADMAN: {}", AppBadMan);
  616. SPDLOG_INFO("APPTIRED: {}", AppTired);
  617. SPDLOG_INFO("APPPEOPLECONT: {}", AppPeopleCont);
  618. SPDLOG_INFO("APPPLAYPHONE: {}", AppPlayPhone);
  619. SPDLOG_INFO("APPMOUSE: {}", AppMouse);
  620. SPDLOG_INFO("APPMASK: {}", AppMask);
  621. SPDLOG_INFO("CHECKSET: {}", CheckSet);
  622. SPDLOG_INFO("EventTimeValid: {}", EventTimeValid);
  623. }