#pragma once //#include "daq/daq_cmddef.h" #include #include "thirdparty/json.h" #include #include #include "daq/daq_protocol.h" #include "sqlite3.h" using namespace std; struct LoadInfo { string appkey; // APPKey string secret; // APPSecret string urlheader; // 综合安防管理平台IP地址 }; class ZJ_CCTV : public CProtocol { public: int ReadIni(); virtual sint32 TxProc(); virtual sint32 RxProc(); virtual void Init(S_PROTOCOLCFG* pcfg); sint32 Get_rtuno(); sint32 Get_CmdNum(); sint32 Get_ACmd(sint32 rtuno, S_RAWCMD* cmd); sint32 Del_ACmd(sint32 rtuno); sint32 Rpt_AResult(sint32 rtuno, S_RAWCMD cmd); int getallResources(); //获取电视墙大屏信息 int realplay(string wnd,string camera); //上墙 int getToken(); long m_seq; bool rxflag; bool txflag; string m_token; LoadInfo logininfo; std::mapWndmap; //窗口 编号-信息 映射 std::mapCameramap;//监控点映射 };