VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vl
createEntityPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2013 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#pragma once
11
12
#if DtDIS
13
14
#include "
hostStructs.h
"
15
#include "
simanPdu.h
"
16
17
18
class
DT_DLL_VL
DtExerciseConn
;
19
20
class
DT_DLL_VL
DtCreateEntityPdu
;
21
typedef
DtCreateEntityPdu
DtCreateEntityInteraction
;
22
24
typedef
void (*
DtCreateEntityPduCb
)(
DtCreateEntityPdu
*pdu,
void
*usr);
25
29
class
DT_DLL_VL
DtCreateEntityPdu
:
public
DtSimanPdu
30
{
31
public
:
32
33
enum
{ PduStaticSize=28 };
34
35
public
:
37
DtCreateEntityPdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
38
39
DtCreateEntityPdu
(
const
DtNetCreateEntityPdu
*initial,
40
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
41
42
DtCreateEntityPdu
(
const
DtEntityIdentifier
&to,
43
const
DtEntityIdentifier
&from,
44
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
45
48
static
DtPdu
*create(
const
DtNetPacket
*initial,
49
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
50
53
static
void
addCallback(
DtExerciseConn
*conn,
54
DtCreateEntityPduCb
cb,
void
*usr);
55
static
void
removeCallback(
DtExerciseConn
*conn,
56
DtCreateEntityPduCb
cb,
void
*usr);
57
59
int
requestId()
const
;
60
void
setRequestId(
int
id
);
61
63
virtual
void
printData
()
const
;
64
66
virtual
void
printDataToStream
(std::ostream& stream)
const
;
67
68
69
protected
:
71
DtPduKind
internalGetPduKind
()
const
{
return
DtCreateEntityPduKind
;}
72
73
};
74
75
#endif
Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)