VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
eventReportPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2013 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
9
10
#pragma once
11
12
#if DtDIS
13
14
#include "
hostStructs.h
"
15
#include "
pduWithData.h
"
16
17
class
DT_DLL_VL
DtExerciseConn
;
18
19
class
DT_DLL_VL
DtEventReportPdu
;
20
typedef
DtEventReportPdu
DtEventReportInteraction
;
21
23
typedef
void (*
DtEventReportPduCb
)(
DtEventReportPdu
*pdu,
void
*usr);
24
28
class
DT_DLL_VL
DtEventReportPdu
:
public
DtPduWithData
29
{
30
public
:
31
32
enum
{ PduStaticSize=40};
33
34
public
:
36
DtEventReportPdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
37
DtEventReportPdu
(
const
DtNetEventReportPdu
*initial,
38
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
39
41
virtual
~DtEventReportPdu
() {};
42
44
virtual
DtEventType
eventType()
const
;
45
virtual
void
setEventType(
DtEventType
type);
46
48
virtual
void
printData
()
const
;
49
51
virtual
void
printDataToStream
(std::ostream& stream)
const
;
52
53
public
:
56
static
DtPdu
*create(
const
DtNetPacket
*initial,
57
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
58
61
static
void
addCallback(
DtExerciseConn
*conn,
62
DtEventReportPduCb
cb,
void
*usr);
63
static
void
removeCallback(
DtExerciseConn
*conn,
64
DtEventReportPduCb
cb,
void
*usr);
65
protected
:
67
DtPduKind
internalGetPduKind
()
const
{
return
DtEventReportPduKind
;}
68
70
DtNetDataPduTail
*
dataSection
()
const
;
71
};
72
73
74
#endif
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)