VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
isPartOfPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#ifndef DtIsPartOfPdu_H_
10
#define DtIsPartOfPdu_H_
11
12
#if DtDIS
13
14
#include <
vlutil/vlMachineTypes.h
>
15
#include <
matrix/vlMath.h
>
16
17
#include "
hostStructs.h
"
18
#include "
dInteraction.h
"
19
#include "
exerciseConn.h
"
20
#include "
packets/isPartOfP.h
"
21
22
23
class
DT_DLL_VL
DtIsPartOfPdu
;
24
26
typedef
void (*
DtIsPartOfPduCb
)(
DtIsPartOfPdu
* pdu,
void
* usr);
27
28
32
class
DT_DLL_VL
DtIsPartOfPdu
:
public
DtInteraction
33
{
34
35
public
:
36
38
DtIsPartOfPdu
(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
39
DtIsPartOfPdu
(
const
DtNetIsPartOfPdu
* initial,
40
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
41
DtIsPartOfPdu
(
const
DtIsPartOfPdu
& orig);
42
44
virtual
~
DtIsPartOfPdu
();
45
47
DtIsPartOfPdu
&
operator=
(
const
DtIsPartOfPdu
& orig);
48
50
virtual
void
setOriginatingEntityID(
const
DtEntityIdentifier
& entity);
51
virtual
const
DtEntityIdentifier
& originatingEntityID()
const
;
52
54
virtual
void
setReceivingEntityID(
const
DtEntityIdentifier
& entity);
55
virtual
const
DtEntityIdentifier
& receivingEntityID()
const
;
56
58
virtual
void
setNature(
DtNature
value);
59
virtual
DtNature
nature()
const
;
60
62
virtual
void
setConstituentPartPosition(
DtPosition
value);
63
virtual
DtPosition
constituentPartPosition()
const
;
64
66
virtual
void
setPartLocation(
const
DtVector
& coords);
67
virtual
const
DtVector
& partLocation()
const
;
68
70
virtual
void
setStationName(
DtStationName
value);
71
virtual
DtStationName
stationName()
const
;
72
74
virtual
void
setStationNumber(
DtU16
value);
75
virtual
DtU16
stationNumber()
const
;
76
78
virtual
void
setEntityType(
const
DtEntityType
& type);
79
virtual
const
DtEntityType
& entityType()
const
;
80
82
virtual
void
printData
()
const
;
83
85
virtual
void
printDataToStream
(std::ostream& stream)
const
;
86
87
public
:
88
91
static
DtPdu
* create(
const
DtNetPacket
* initial,
92
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
93
96
static
void
addCallback(
DtExerciseConn
* conn,
97
DtIsPartOfPduCb
cb,
void
* usr);
98
static
void
removeCallback(
DtExerciseConn
* conn,
99
DtIsPartOfPduCb
cb,
void
* usr);
100
101
protected
:
102
104
virtual
DtPduKind
internalGetPduKind
()
const
;
105
108
virtual
DtNetIsPartOfPdu
* netPduStruct()
const
;
109
112
DtIsPartOfPdu
*
self
()
const
;
113
114
protected
:
115
117
static
const
int
theStaticSize
;
118
119
protected
:
120
122
DtEntityIdentifier
myEntityID
;
123
DtVector
myVector
;
124
DtEntityType
myEntityType
;
125
126
};
127
128
#endif
129
#endif
130
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
)