1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /*
- * @Description: 检查处
- * @Version: 1.0
- * @Autor: lishengyin
- * @Date: 2022-04-02 14:16:08
- * @LastEditors: lishengyin
- * @LastEditTime: 2022-04-15 11:21:04
- */
- #ifndef __INSPECTOR_HPP_
- #define __INSPECTOR_HPP_
- #include <iostream>
- #include "ins_module.hpp"
- #include "Util/logger.h"
- #include "Util/NoticeCenter.h"
- using namespace std;
- namespace ins{
- class Inspector:public Module
- {
- private:
- Inspector():Module("Inspector"){
- Init();
- }
- public:
- using Ptr = std::shared_ptr<Inspector>;
-
- ~Inspector(){this->Destroy();}
- /**
- * @description: 获取ptr
- * @param {*}
- * @return {*}
- */
- static std::shared_ptr<Inspector> getPtr();
- /**
- * @description: 检查模块
- * @param {*}
- * @return {*}
- */
- int8_t CheckModule();
- /**
- * @description: 初始化
- * @param {*}
- * @return {*}
- */
- int8_t Init() override;
- /**
- * @description: 释放
- * @param {*}
- * @return {*}
- */
- void Destroy() override;
- /**
- * @description: 是否正常
- * @param {*}
- * @return {*}
- */
- bool isNormally() override{
- return true;
- }
- };
- };
- #endif
|