Project

General

Profile

Feature #3000 » ZJ_cctv.h

yan hong, 05/24/2023 03:21 PM

 
1
#pragma once
2
//#include "daq/daq_cmddef.h"
3
#include <string>
4
#include "thirdparty/json.h"
5
#include <vector>
6
#include <map>
7
#include "daq/daq_protocol.h"
8
#include "sqlite3.h"  
9

    
10
using namespace std;
11

    
12

    
13
struct LoadInfo
14
{
15
	string appkey; // APPKey
16
	string secret; // APPSecret
17
	string urlheader; // ?ۺϰ???????ƽ̨IP??ַ
18
};
19

    
20

    
21
class ZJ_CCTV : public CProtocol
22
{
23
public:
24
	int ReadIni();
25

    
26
	virtual sint32 TxProc();
27
	virtual sint32 RxProc();
28

    
29
	virtual void Init(S_PROTOCOLCFG* pcfg);
30

    
31
	sint32 Get_rtuno();
32
	sint32 Get_CmdNum();
33
	sint32 Get_ACmd(sint32 rtuno, S_RAWCMD* cmd);
34
	sint32 Del_ACmd(sint32 rtuno);
35
	sint32 Rpt_AResult(sint32 rtuno, S_RAWCMD cmd);
36

    
37
	int getallResources(); //??ȡ????ǽ??????Ϣ
38
	int realplay(string wnd,string camera); //??ǽ
39
	int getToken(); 
40
	long m_seq;
41
	bool rxflag;
42
	bool txflag;
43
	string m_token;
44
	LoadInfo logininfo;
45
	std::map<int, string>Wndmap; //???? ???-??Ϣ ӳ??
46
	std::map<int, string>Cameramap;//??ص?ӳ??
47
};
(2-2/9)