/* * @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 #include #include #include #include #include #include #include #include #include #include #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 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; }; }