123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- /*
- * @Description:
- * @Version: 1.0
- * @Autor: lishengyin
- * @Date: 2022-01-11 11:47:37
- * @LastEditors: lishengyin
- * @LastEditTime: 2022-01-11 14:40:35
- */
- #pragma once
- #include <iostream>
- #include <iostream>
- #include <map>
- #include <time.h>
- #include <dirent.h>
- #include <time.h>
- #include <cstdlib>
- #include <dirent.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <unistd.h>
- #include "Util/logger.h"
- #include "Util/NoticeCenter.h"
- #include "Poller/EventPoller.h"
- #include "Player/PlayerProxy.h"
- #include "Rtmp/RtmpPusher.h"
- #include "Common/config.h"
- #include "Pusher/MediaPusher.h"
- #include "Extension/Frame.h"
- #include "Util/SqlPool.h"
- #include "Network/TcpClient.h"
- #include "Poller/Timer.h"
- #include "monitor.h"
- #include "Notices.h"
- #include "inference.h"
- #include "deviceState.h"
- using namespace toolkit;
- using namespace std;
- namespace MIVA{
- class Manager
- {
- private:
- int MemoryThreshold;
- int TempThreshold;
-
- public:
- Manager();
- ~Manager();
- /**
- * @description: 创建实例
- * @param {*}
- * @return {*}
- */
- static std::shared_ptr<Manager> CreateNew();
- /**
- * @description: 设置MemoryThreshold
- * @param {int} MemoryThreshold
- * @return {*}
- */
- void setMemoryThreshold(int memoryThreshold);
- /**
- * @description: 设置温度阈值
- * @param {int} TempThreshold
- * @return {*}
- */
- void setTempThreshold(int tempThreshold);
- /**
- * @description: 获取启动资格
- * @param {*}
- * @return {*}
- */
- int32_t getStartPower();
- /**
- * @description: 获取停止的资格
- * @param {*}
- * @return {*}
- */
- int32_t getStopPower();
- /**
- * @description: 获取清理的资格
- * @param {*}
- * @return {*}
- */
- int32_t getClearPower();
- /**
- * @description: 获取同步数据的资格
- * @param {*}
- * @return {*}
- */
- int32_t getSyncDataPower();
- /**
- * @description: 获取上层数据的资格
- * @param {*}
- * @return {*}
- */
- int32_t getHostDataPower();
-
- public:
- using Ptr = std::shared_ptr<Manager>;
- };
- }
|