VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
createEntityRPdu.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
#include "
packets/createEntRP.h
"
17
#include "
exerciseConn.h
"
18
19
20
class
DT_DLL_VL
DtCreateEntityRPdu
;
21
23
typedef
void (*
DtCreateEntityRPduCb
)(
DtCreateEntityRPdu
* pdu,
void
* usr);
24
25
29
class
DT_DLL_VL
DtCreateEntityRPdu
:
public
DtSimanPdu
30
{
31
public
:
32
34
DtCreateEntityRPdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
35
DtCreateEntityRPdu
(
const
DtNetCreateEntityRPdu
* initial,
36
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
37
DtCreateEntityRPdu
(
const
DtEntityIdentifier
& to,
38
const
DtEntityIdentifier
& from,
39
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
40
DtCreateEntityRPdu
(
const
DtCreateEntityRPdu
& orig);
41
43
virtual
~
DtCreateEntityRPdu
();
44
46
DtCreateEntityRPdu
&
operator=
(
const
DtCreateEntityRPdu
& orig);
47
49
virtual
void
setRequestId(
int
id
);
50
virtual
int
requestId()
const
;
51
53
virtual
void
setReqRelService(
DtRequiredReliabilityService
value);
54
virtual
DtRequiredReliabilityService
reqRelService()
const
;
55
57
virtual
void
printData
()
const
;
58
60
virtual
void
printDataToStream
(std::ostream& stream)
const
;
61
62
public
:
63
66
static
DtPdu
* create(
const
DtNetPacket
* initial,
67
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
,
DtPduFactory
* pduFactory = 0);
68
71
static
void
addCallback(
DtExerciseConn
* conn,
72
DtCreateEntityRPduCb
cb,
void
* usr);
73
static
void
removeCallback(
DtExerciseConn
* conn,
74
DtCreateEntityRPduCb
cb,
void
* usr);
75
76
protected
:
77
79
virtual
DtPduKind
internalGetPduKind
()
const
;
80
81
protected
:
82
83
static
const
int
theStaticSize
;
84
85
};
86
87
inline
DtPduKind
DtCreateEntityRPdu::internalGetPduKind
()
const
88
{
89
return
DtCreateEntityRPduKind
;
90
}
91
92
#endif
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)