Feature #2758 » ZJ_ACS.h
1 |
#ifndef _ZA_ACSPROC |
---|---|
2 |
#define _ZA_ACSPROC |
3 |
|
4 |
#pragma once |
5 |
//#include "daq/daq_cmddef.h" |
6 |
#include <string> |
7 |
#include "thirdparty/json.h" |
8 |
#include <vector> |
9 |
#include <map> |
10 |
#include "daq/daq_protocol.h" |
11 |
|
12 |
#include "ZJ_ACSputRdb.h" |
13 |
using namespace std; |
14 |
|
15 |
|
16 |
class CZJACS : public CProtocol |
17 |
{ |
18 |
public: |
19 |
CZJACS(); |
20 |
~CZJACS(); |
21 |
public: |
22 |
CRawDataWrapper * iotPRawCtrl; |
23 |
//??Ӧ??Լ??????Ӧ???????ϣ???????????Ҫ?ύ??SCADA?????ϣ???? |
24 |
//??Ӧ?ڸ??????????ܵĽӿ??ࣻ |
25 |
//?????һ??YX??λ,????һ??????ݽ?һ???仯???ϵȵ? |
26 |
CRawBuff * iotpRxBuf, *iotpTxBuf; |
27 |
//??Ӧ?ù?Լ??Ӧ???շ??????? |
28 |
|
29 |
CRawCmdMem * iotpCmdMem; |
30 |
//??Ӧ??????????ģ?鷢????????????Ϣ |
31 |
|
32 |
CRawRtu * iotpRtu; |
33 |
//??Ӧ?ù?Լ??Ӧ???ն???Ϣ |
34 |
|
35 |
CRawLink * iotpLink; |
36 |
//??Ӧ?ù?Լ??Ӧ????·??Ϣ |
37 |
|
38 |
void ReadIni(); |
39 |
|
40 |
virtual sint32 TxProc(); |
41 |
virtual sint32 RxProc(); |
42 |
|
43 |
virtual void Init(S_PROTOCOLCFG* pcfg); |
44 |
putRdb strCallback; |
45 |
void restfulServer(); |
46 |
|
47 |
int RemoteOpened(); |
48 |
int PostSubscribe(int type); |
49 |
int DeleteSubscribe(string id); |
50 |
|
51 |
bool rxflag; |
52 |
bool txflag; |
53 |
bool seflag; |
54 |
bool subscribeflag; |
55 |
bool subscribeflag2; |
56 |
|
57 |
int subid_Verification; |
58 |
int subid_Alarm; |
59 |
|
60 |
private: |
61 |
string server_urls; |
62 |
string client_ip; |
63 |
int client_port; |
64 |
sint32 rxthread; |
65 |
sint32 txthread; |
66 |
sint32 sethread; |
67 |
}; |
68 |
|
69 |
#endif |