[go: up one dir, main page]

Menu

[r369]: / trunk / VTS3 / Send.h  Maximize  Restore  History

Download this file

338 lines (276 with data), 11.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
#if !defined(AFX_SEND_H__8707D031_2ADB_11D4_BE9D_00A0C95A9812__INCLUDED_)
#define AFX_SEND_H__8707D031_2ADB_11D4_BE9D_00A0C95A9812__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Send.h : header file
//
#include "VTSDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CSend
#include "SendPage.h"
// Null Page
#include "SendNull.h"
#include "SendRaw.h"
#include "SendTest.h"
// BIP Pages
#include "SendIP.h"
#include "SendBVLCI.h"
#include "SendBVLCResult.h"
#include "SendWriteBDT.h"
#include "SendReadBDT.h"
#include "SendReadBDTAck.h"
#include "SendRegisterFD.h"
#include "SendReadFDT.h"
#include "SendReadFDTAck.h"
#include "SendDeleteFDTEntry.h"
// Ethernet Pages
#include "SendEnet.h"
// ARCNET Pages
// PTP Pages
// Device Pages
#include "SendDevice.h"
// NPDU Pages
#include "SendNPCI.h"
#include "SendVendorNPDU.h"
#include "SendWhoIsRTN.h"
#include "SendIAmRTN.h"
#include "SendICouldBeRTN.h"
#include "SendRejectMTN.h"
#include "SendRouterBusy.h"
#include "SendRouterAvailable.h"
#include "SendInitRT.h"
#include "SendInitRTAck.h"
#include "SendEstablishCTN.h"
#include "SendDisconnectCTN.h"
// APDU Base Pages
#include "SendConfirmedRequest.h"
#include "SendComplexACK.h"
// Confirmed Alarm and Event Services
#include "SendAckAlarm.h"
#include "SendConfCOVNotification.h"
#include "SendUnconfCOVNotification.h"
#include "SendGetAlarmSummary.h"
#include "SendGetAlarmSummaryACK.h"
#include "SendConfEventNotification.h"
#include "SendUnconfEventNotification.h"
#include "SendGetEnrollmentSummary.h"
#include "SendGetEnrollmentSummaryACK.h"
#include "SendSubscribeCOV.h"
// File Access Services
#include "SendReadFile.h"
#include "SendReadFileACK.h"
#include "SendWriteFile.h"
#include "SendWriteFileACK.h"
// Confirmed Object Access Pages
#include "SendAddListElement.h"
#include "SendCreateObject.h"
#include "SendCreateObjectACK.h"
#include "SendCreateObjectError.h"
#include "SendDeleteObject.h"
#include "SendReadProp.h"
#include "SendReadPropACK.h"
#include "SendReadPropMult.h"
#include "SendReadPropMultACK.h"
#include "SendRemoveListElement.h"
#include "SendWriteProp.h"
#include "SendWritePropMult.h"
#include "SendWritePropMultError.h"
#include "SendReadRange.h"
// APDU Pages
#include "SendSimpleACK.h"
#include "SendSegmentACK.h"
#include "SendError.h"
#include "SendReject.h"
#include "SendAbort.h"
#include "SendChangeListError.h"
// Remote Device Management Pages
#include "SendDeviceCommCtrl.h"
#include "SendConfTextMsg.h"
#include "SendIAm.h"
#include "SendIHave.h"
#include "SendReinitDevice.h"
#include "SendUnconfTextMsg.h"
#include "SendTimeSync.h"
#include "SendUTCTimeSync.h"
//#include "SendUTCTimeSync.h"
#include "SendWhoHas.h"
#include "SendWhoIs.h"
// Virtual Terminal Pages
#include "SendVTOpen.h"
#include "SendVTOpenACK.h"
#include "SendVTClose.h"
#include "SendVTCloseError.h"
#include "SendVTData.h"
#include "SendVTDataACK.h"
//
// CSend
//
struct CSendGroup;
const int kCSendMaxPages = 8; // maximum number of installed pages
const DWORD kCSendPageUnused = (DWORD)-1; // unused slot
class CSend : public CPropertySheet
{
DECLARE_DYNAMIC(CSend)
// Construction
public:
CSend(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CSend(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
void InitPages( void );
// Attributes
public:
CSendNull NullPage; // no fields, does nothing
CSendRaw RawPage; // good for raw octets
CSendTest TestPage; // very useful for debugging
CSendIP IPPage; // IP base page
CSendEnet EnetPage; // Ethernet base page
CSendNull ARCNETPage; // ARCNET base page
CSendNull MSTPPage; // MS/TP base page
CSendNull PTPPage; // PTP base page
CSendDevice DevicePage; // Device base page
CSendBVLCI BVLCIPage; // BVLCI base page
CSendBVLCResult BVLCResultPage; // BVLC-Result
CSendWriteBDT WriteBDTPage; // Write-Broadcast-Distribution-Table
CSendReadBDT ReadBDTPage; // Read-Broadcast-Distribution-Table
CSendReadBDTAck ReadBDTAckPage; // Read-Broadcast-Distribution-Table-Ack
CSendRegisterFD RegisterFDPage; // Register-Foreign-Device
CSendReadFDT ReadFDTPage; // Read-Foreign-Device-Table
CSendReadFDTAck ReadFDTAckPage; // Read-Foreign-Device-Table-Ack
CSendDeleteFDTEntry DeleteFDTEntryPage; // Delete-Foreign-Device-Table-Entry
CSendNPCI NPCIPage; // NPDU base page
CSendVendorNPDU VendorNPDUPage; // vendor propietary network message
CSendWhoIsRTN WhoIsRTNPage; // Who-Is-Router-To-Network
CSendIAmRTN IAmRTNPage; // I-Am-Router-To-Network
CSendICouldBeRTN ICouldBeRTNPage; // I-Could-Be-Router-To-Network
CSendRejectMTN RejectMTNPage; // Reject-Message-To-Network
CSendRouterBusy RouterBusyPage; // Router-Busy-To-Network
CSendRouterAvailable RouterAvailablePage; // Router-Available-To-Network
CSendInitRT InitRTPage; // Initialize-Routing-Table
CSendInitRTAck InitRTAckPage; // Initialize-Routing-Table-Ack
CSendEstablishCTN EstablishCTNPage; // Establish-Connection-To-Network
CSendDisconnectCTN DisconnectCTNPage; // Disconnect-Connection-To-Network
CSendConfirmedRequest ConfirmedRequestPage; // Confirmed Request base page
CSendComplexACK ComplexACKPage; // Complex-ACK base page
CSendAckAlarm AckAlarmPage; // AcknowledgeAlarm
CSendConfCOVNotification ConfCOVNotificationPage; // ConfirmedCOVNotification
CSendUnconfCOVNotification UnconfCOVNotificationPage; // UnconfirmedCOVNotification
CSendGetAlarmSummary GetAlarmSummaryPage; // GetAlarmSummary
CSendGetAlarmSummaryACK GetAlarmSummaryACKPage; // GetAlarmSummary-ACK
CSendConfEventNotification ConfEventNotificationPage; // ConfirmedEventNotification
CSendUnconfEventNotification UnconfEventNotificationPage; // UnconfirmedEventNotification
CSendGetEnrollmentSummary GetEnrollmentSummaryPage; // GetEnrollmentSummary
CSendGetEnrollmentSummaryACK GetEnrollmentSummaryACKPage; // GetEnrollmentSummary-ACK
CSendSubscribeCOV SubscribeCOVPage; // SubscribeCOV
CSendReadFile ReadFilePage; // AtomicReadFile
CSendReadFileACK ReadFileACKPage; // AtomicReadFile-ACK
CSendWriteFile WriteFilePage; // AtomicWriteFile
CSendWriteFileACK WriteFileACKPage; // AtomicWriteFile-ACK
CSendAddListElement AddListElementPage; // AddListElement
CSendCreateObject CreateObjectPage; // CreateObject
CSendCreateObjectACK CreateObjectACKPage; // CreateObject-ACK
CSendCreateObjectError CreateObjectErrorPage; // CreateObject-Error
CSendDeleteObject DeleteObjectPage; // DeleteObject
CSendReadProp ReadPropPage; // ReadProperty
CSendReadPropACK ReadPropACKPage; // ReadProperty-ACK
CSendReadPropMult ReadPropMultPage; // ReadPropertyMultiple
CSendReadPropMultACK ReadPropMultACKPage; // ReadPropertyMultiple-ACK
SendReadRange ReadRangePage; // ReadRange
CSendRemoveListElement RemoveListElementPage; // RemoveListElement
CSendWriteProp WritePropPage; // WriteProperty
CSendWritePropMult WritePropMultPage; // WritePropertyMultiple
CSendWritePropMultError WritePropMultErrorPage; // WritePropertyMultiple-Error
CSendDeviceCommCtrl DeviceCommCtrlPage; // DeviceCommunicationControl
CSendConfTextMsg ConfTextMsgPage; // ConfirmedTextMessage
CSendIAm IAmPage; // I-Am
CSendIHave IHavePage; // I-Have
CSendReinitDevice ReinitDevicePage; // ReinitializeDevice
CSendUnconfTextMsg UnconfTextMsgPage; // UnconfirmedTextMessage
CSendTimeSync TimeSyncPage; // TimeSynchronization
CSendUTCTimeSync UTCTimeSyncPage; // UTCTimeSynchronization
CSendWhoHas WhoHasPage; // Who-Has
CSendWhoIs WhoIsPage; // Who-Is
CSendVTOpen VTOpenPage; // VT-Open
CSendVTOpenACK VTOpenACKPage; // VT-Open-ACK
CSendVTClose VTClosePage; // VT-Close
CSendVTCloseError VTCloseErrorPage; // VT-Close-Error
CSendVTData VTDataPage; // VT-Data
CSendVTDataACK VTDataACKPage; // VT-Data-ACK
CSendSimpleACK SimpleACKPage; // Simple-ACK
CSendSegmentACK SegmentACKPage; // Segment-ACK
CSendError ErrorPage; // Error
CSendReject RejectPage; // Reject
CSendAbort AbortPage; // Abort
CSendChangeListError ChangeListErrorPage; // ChangeList-Error
CComboBox m_port; // which port to send contents
CTreeCtrl m_packetTree; // tree of packet types
CImageList m_packetTreeImageList; // images to use for packetTree
CEdit m_packetData; // packet data in hex
VTSPortPtr m_pPort; // current port
CSendGroupList m_groupList; // current list of page groups
CSendPagePtr m_pages[kCSendMaxPages]; // list of installed pages
HTREEITEM m_currentItem; // current selected item
bool m_isConfirmedRequest; // true iff ConfirmedRequestPage loaded
CButton m_send; // send button
CComboBox m_history; //choose history data. Xiao Shiyuan 2002-12-5
CSendPagePtr curPagePtr; //current shown page. Xiao Shiyuan 2002-12-5
// Operations
public:
void SetHistoryComboBox(int count);
void UpdateEncoded( void ); // update the encoded contents
void DoSend(); // send the contents to the port
void SetPageList( CSendPageMList lp ); // install a new list of pages
void SetNullPageList( void ); // install just the null page
void SetSendGroup( CSendGroupList lst ); // change to new send group
void ChangePort( int indx ); // change the port selection
void ChangePacketTree( int iGroup, int iItem ); // change the tree selection
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSend)
public:
virtual BOOL OnInitDialog();
protected:
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSend();
// Generated message map functions
protected:
//{{AFX_MSG(CSend)
void OnSelchangePort();
void OnSelchangeHistory();
void OnSelchangePacketTree( NMHDR* pNotifyStruct, LRESULT* result );
void OnItemExpandedPacketTree( NMHDR* pNotifyStruct, LRESULT* result );
void OnSend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
extern CSendGroup gIPGroup;
extern CSendGroupPtr gIPGroupList[];
extern CSendGroup gEthernetGroup;
extern CSendGroupPtr gEthernetGroupList[];
extern CSendGroup gARCNETGroup;
extern CSendGroupPtr gARCNETGroupList[];
extern CSendGroup gMSTPGroup;
extern CSendGroupPtr gMSTPGroupList[];
extern CSendGroup gPTPGroup;
extern CSendGroupPtr gPTPGroupList[];
extern CSendGroup gDeviceGroup;
extern CSendGroupPtr gDeviceGroupList[];
/////////////////////////////////////////////////////////////////////////////
extern CSendGroup gBVLLGroup;
extern CSendGroup gBVLLGroup;
extern CSendGroup gNetworkGroup;
extern CSendGroup gAlarmEventAccessGroup;
extern CSendGroup gFileAccessGroup;
extern CSendGroup gObjectAccessGroup;
extern CSendGroup gRemoteDevMgmtGroup;
extern CSendGroup gVirtualTerminalGroup;
extern CSendGroup gSimpleACKGroup;
extern CSendGroup gApplicationGroup;
extern CSendGroup gErrorGroup;
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SEND_H__8707D031_2ADB_11D4_BE9D_00A0C95A9812__INCLUDED_)