VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
createEntRPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef DtCreateEntityRPdu_H_
7
#define DtCreateEntityRPdu_H_
8
12
13
#if DtDIS
14
15
#include "
hostStructs.h
"
16
#include "
simanPdu.h
"
17
#include "
packets/createEntRP.h
"
18
#include "
exerciseConn.h
"
19
20
21
class
DT_DLL_VL
DtCreateEntityRPdu
;
22
24
typedef
void (*
DtCreateEntityRPduCb
)(
DtCreateEntityRPdu
* pdu,
void
* usr);
25
26
30
class
DT_DLL_VL
DtCreateEntityRPdu
:
public
DtSimanPdu
31
{
32
public
:
33
35
DtCreateEntityRPdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
36
DtCreateEntityRPdu
(
const
DtNetCreateEntityRPdu
* initial,
37
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
38
DtCreateEntityRPdu
(
const
DtEntityIdentifier
& to,
39
const
DtEntityIdentifier
& from,
40
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
41
DtCreateEntityRPdu
(
const
DtCreateEntityRPdu
& orig);
42
44
virtual
~
DtCreateEntityRPdu
();
45
47
DtCreateEntityRPdu
&
operator=
(
const
DtCreateEntityRPdu
& orig);
48
50
virtual
void
setRequestId(
int
id
);
51
virtual
int
requestId()
const
;
52
54
virtual
void
setReqRelService(
DtRequiredReliabilityService
value);
55
virtual
DtRequiredReliabilityService
reqRelService()
const
;
56
58
virtual
void
printData
()
const
;
59
61
virtual
void
printDataToStream
(std::ostream& stream)
const
;
62
63
public
:
64
67
static
DtPdu
* create(
const
DtNetPacket
* initial,
68
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
69
72
static
void
addCallback(
DtExerciseConn
* conn,
73
DtCreateEntityRPduCb
cb,
void
* usr);
74
static
void
removeCallback(
DtExerciseConn
* conn,
75
DtCreateEntityRPduCb
cb,
void
* usr);
76
77
protected
:
78
80
virtual
DtPduKind
internalGetPduKind
()
const
;
81
82
protected
:
83
84
static
const
int
theStaticSize
;
85
86
};
87
88
inline
DtPduKind
DtCreateEntityRPdu::internalGetPduKind
()
const
89
{
90
return
DtCreateEntityRPduKind
;
91
}
92
93
#endif
94
#endif
95
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
)