VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
eventReptRPdu.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 DtEventReptRPdu_H_
11
#define DtEventReptRPdu_H_
12
13
#if DtDIS
14
15
#include "
hostStructs.h
"
16
#include "
pduWithData.h
"
17
#include "
exerciseConn.h
"
18
19
20
class
DT_DLL_VL
DtEventReptRPdu;
21
23
typedef
void (*DtEventReptRPduCb)(DtEventReptRPdu* pdu,
void
* usr);
24
28
class
DT_DLL_VL
DtEventReptRPdu :
public
DtPduWithData
29
{
30
public
:
32
DtEventReptRPdu(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
33
DtEventReptRPdu(
const
DtNetEventReportPdu
* initial,
34
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
35
DtEventReptRPdu(
const
DtEventReptRPdu& orig);
36
38
virtual
~DtEventReptRPdu();
39
41
DtEventReptRPdu& operator=(
const
DtEventReptRPdu& orig);
42
44
virtual
void
setEventType(
DtEventType
type);
45
virtual
DtEventType
eventType()
const
;
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
);
58
61
static
void
addCallback(
DtExerciseConn
* conn,
62
DtEventReptRPduCb cb,
void
* usr);
63
static
void
removeCallback(
DtExerciseConn
* conn,
64
DtEventReptRPduCb cb,
void
* usr);
65
66
protected
:
68
virtual
DtPduKind
internalGetPduKind()
const
;
69
71
virtual
DtNetDataPduTail
* dataSection()
const
;
72
73
protected
:
74
75
static
const
int
theStaticSize;
76
77
};
78
79
inline
DtPduKind
DtEventReptRPdu::internalGetPduKind()
const
80
{
81
return
DtEventReptRPduKind
;
82
}
83
84
#endif
85
#endif
86
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
)