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