MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrSim
lgrDisMessageState.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 lgrDisMessageState_H_
11
#define lgrDisMessageState_H_
12
13
#if DtDIS
14
15
#include "
lgrSim.h
"
16
#include "
messageState.h
"
17
#include "
virtualConstructor.h
"
18
19
#include <list>
20
#include <set>
21
#include <vlpi/disEnums.h>
22
23
enum
DtPduKind;
24
25
namespace
MAKLogger
26
{
27
28
class
DtLgrDisSimulationManager;
29
32
class
DT_DLL_LGRSIM
DtLgrDisMessageState
:
public
DtMessageState
33
{
34
public
:
35
36
typedef
std::set<DtPduKind>
DtPduKindSet
;
37
38
DT_VIRTUAL_CTR
(
DtLgrDisMessageState
,(
const
DtPduKindSet
& statePduKinds))
39
40
virtual
~
DtLgrDisMessageState
();
41
44
virtual
void
modifyMessages(
DtMessageBuffer
& messages);
45
47
virtual
void
modifyMessage(
DtPacket
& packet);
48
50
virtual
void
decodeCheckpoint(
const
DtPacket
& packet,
DtMessageBuffer
& buffer);
51
54
virtual
DtPacket
* generateCheckpoint(
const
DtAbsoluteTime
& timestampe);
55
56
virtual
bool
isUpdateMessage(
const
DtPacket
& packet)
const
;
57
virtual
bool
isRemovalMessage(
const
DtPacket
& packet)
const
;
58
60
virtual
void
createUpdate(
DtStateObject
&
object
,
const
DtAbsoluteTime
& time, std::list<DtPacket*>& packetlist);
61
63
virtual
DtPacket
* createRemoval(
DtStateObject
&
object
,
const
DtAbsoluteTime
& time);
64
65
virtual
void
setInputVersion(
int
disVersion);
66
virtual
void
setOutputVersion(
int
disVersion);
67
68
protected
:
69
70
virtual
void
activateState();
71
virtual
void
deactivateState();
72
74
DtLgrDisMessageState
(
const
DtLgrDisMessageState
&);
75
77
DtLgrDisMessageState
& operator=(
const
DtLgrDisMessageState
&);
78
79
DtPduKindSet
myStatePduKinds
;
80
81
int
myInputVersion
;
82
int
myOutputVersion
;
83
};
84
85
}
86
87
#endif
88
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)