MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
lgrSim
lgrDisStateObject.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#ifndef lgrDisStateObject_H_
11
#define lgrDisStateObject_H_
12
13
#if DtDIS
14
15
#include <
lgrSim/lgrSim.h
>
16
#include <
lgrCore/stateObject.h
>
17
#include <
lgrUtil/absoluteTime.h
>
18
#include <list>
19
20
struct
DtNetPduHeader;
21
22
namespace
MAKLogger
23
{
24
25
class
DtMessageState;
26
class
DtLgrDisMessageState;
27
30
class
DT_DLL_LGRSIM
DtDisStateObject
:
public
DtStateObject
31
{
32
public
:
33
34
DT_VIRTUAL_CTR
(
DtDisStateObject
,(
DtLgrDisMessageState
&,
const
DtPacket
&))
35
DT_VIRTUAL_BASE_CTR
(
DtStateObject
,(
DtMessageState
&,
const
DtPacket
&))
36
37
virtual
~
DtDisStateObject
();
38
40
virtual
DtU64 uniqueId()
const
;
41
43
virtual
const
DtString& name()
const
;
44
46
virtual
DtU64 packetId(
const
DtPacket
& packet)
const
;
47
50
virtual
void
setPacketId(DtU64,
DtPacket
&)
const
;
51
53
virtual
bool
packetForMe(
const
DtPacket
&)
const
;
54
56
virtual
void
updateViaPacket(
const
DtPacket
&);
57
59
virtual
DtPacket
* createUpdate(
const
DtAbsoluteTime
& time)
const
;
60
62
virtual
void
createUpdate(
const
DtAbsoluteTime
& time, std::list<DtPacket*>& packetlist)
const
;
63
65
virtual
DtPacket
* createRemoval(
const
DtAbsoluteTime
& time)
const
;
66
69
70
virtual
bool
isEntity()
const
;
71
virtual
bool
isAggregate()
const
;
72
virtual
bool
isEnvironmentalProcess()
const
;
73
virtual
bool
isGriddedData()
const
;
74
virtual
bool
isTransmitter()
const
;
75
virtual
bool
isReceiver()
const
;
76
virtual
bool
isDiGuy()
const
;
77
virtual
bool
isRelativeLocation()
const
;
79
80
81
protected
:
82
84
virtual
void
copyPacket(
const
DtPacket
& packet,
85
DtNetPduHeader** lastPdu,
int
& lastPduSize,
int
& lastBufferSize);
86
88
virtual
void
createUpdate(DtNetPduHeader* lastPdu,
int
lastPduSize,
89
const
DtAbsoluteTime
& time, std::list<DtPacket*>& packetlist)
const
;
90
91
protected
:
92
93
DtAbsoluteTime
myLastTime
;
94
DtNetPduHeader*
myLastPdu
;
95
DtString
myName
;
96
97
DtNetPduHeader*
myLastDiGuyAppearancePdu
;
98
DtNetPduHeader*
myLastDiGuyTypePdu
;
99
DtNetPduHeader*
myLastDiGuyActionPdu
;
100
101
int
myLastPduSize
;
102
int
myLastDiGuyAppearancePduSize
;
103
int
myLastDiGuyTypePduSize
;
104
int
myLastDiGuyActionPduSize
;
105
int
myPduBufferSize
;
106
int
myDiGuyAppearancePduBufferSize
;
107
int
myDiGuyTypePduBufferSize
;
108
int
myDiGuyActionPduBufferSize
;
109
};
110
111
}
112
113
#endif
114
#endif
Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)