#pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #include #include #include #include #include "expel.h" #include "md5.h" #include "Base64.h" #include "CSerialPort/SerialPort.h" #include "kafka_comsumer.h" #include "dataTypeList.h" #include "Util/TimeTicker.h" #include "Network/TcpServer.h" #include "Network/TcpSession.h" #include "InfineFilter.h" class Monitor{ private: std::shared_ptr m_KafkaConsumer = nullptr; public: Monitor(); ~Monitor(); /** * @description: 初始化 * @param {*} * @return {*} */ bool Init(); /** * @description: 消费数据 * @param {*} * @return {*} */ bool ConsumeData(FrameInferData::Ptr& result); };