VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
createPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
7
#ifndef DtCreateEntityPdu_H_
8
#define DtCreateEntityPdu_H_
9
13
14
#if DtDIS
15
16
#include "
hostStructs.h
"
17
#include "
simanPdu.h
"
18
19
20
class
DT_DLL_VL
DtExerciseConn
;
21
22
class
DT_DLL_VL
DtCreateEntityPdu;
23
typedef
DtCreateEntityPdu
DtCreateEntityInteraction
;
24
26
typedef
void (*DtCreateEntityPduCb)(DtCreateEntityPdu *pdu,
void
*usr);
27
31
class
DT_DLL_VL
DtCreateEntityPdu :
public
DtSimanPdu
32
{
33
public
:
34
35
enum
{ PduStaticSize=28 };
36
37
public
:
39
DtCreateEntityPdu(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
40
41
DtCreateEntityPdu(
const
DtNetCreateEntityPdu
*initial,
42
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
43
44
DtCreateEntityPdu(
const
DtEntityIdentifier
&to,
45
const
DtEntityIdentifier
&from,
46
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
47
50
static
DtPdu
*create(
const
DtNetPacket
*initial,
51
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
52
55
static
void
addCallback(
DtExerciseConn
*conn,
56
DtCreateEntityPduCb cb,
void
*usr);
57
static
void
removeCallback(
DtExerciseConn
*conn,
58
DtCreateEntityPduCb cb,
void
*usr);
59
61
int
requestId()
const
;
62
void
setRequestId(
int
id
);
63
65
virtual
void
printData()
const
;
66
68
virtual
void
printDataToStream(std::ostream& stream)
const
;
69
70
71
protected
:
73
DtPduKind
internalGetPduKind()
const
{
return
DtCreateEntityPduKind
;}
74
75
};
76
77
#endif
78
#endif
79
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
)