emsApplication/applications/ems_datahubs/eventhandler.h

19 lines
309 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include <hv/hloop.h>
class EventHandler
{
public:
EventHandler();
virtual ~EventHandler();
public:
static void onRecvHandler(hio_t* io, void* buf, int readbytes);
protected:
//处理采集程序上传的数据以JSON数据上报
static void handleGatherData(hio_t* io, void* buf, int readbytes);
};