VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
dAggPub.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
#pragma once
6
7
8
9
#if DtDIS
10
11
12
#include "
aggregateSR.h
"
13
#include "
dObjPub.h
"
14
#include "
dAggEnc.h
"
15
#include "
dAggDec.h
"
16
17
class
DT_DLL_VL
DtExerciseConn
;
18
22
class
DT_DLL_VL
DtAggregatePublisher
:
public
DtObjectPublisher
23
{
26
typedef
DtAggregateStateRepository
* (*DtStateRepCreator)();
27
28
public
:
29
31
DtAggregatePublisher
(
32
DtAggregateStateRepository
*stateRepToUse,
33
DtExerciseConn
* conn,
34
const
DtObjectId
&
id
=
DtObjectId::nullId
());
35
37
DtAggregatePublisher
(
38
DtExerciseConn
* conn,
39
const
DtObjectId
&
id
=
DtObjectId::nullId
());
40
43
DtAggregatePublisher
(
44
const
DtEntityType
& type,
45
DtExerciseConn
* conn,
46
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
47
50
DtAggregatePublisher
(
51
const
DtEntityType
& type,
52
DtExerciseConn
* conn,
53
DtDeadReckonTypes
algorithm,
54
DtForceType
forceId,
55
const
DtObjectId
&
id
=
DtObjectId::defaultId
());
56
58
virtual
~
DtAggregatePublisher
();
59
61
virtual
void
tick
();
62
64
virtual
void
forceUpdate
();
65
67
virtual
DtAggregateStateRepository
* aggregateStateRep();
68
70
virtual
DtAggregateStateRepository
* asr();
71
73
virtual
const
DtObjectId
&
id
()
const
;
74
76
virtual
const
DtObjectId
&
localId
()
const
;
77
79
virtual
const
DtGlobalObjectDesignator
&
globalId
()
const
;
80
81
public
:
82
84
static
void
setStateRepCreator(DtStateRepCreator creator);
85
static
DtStateRepCreator setStateRepCreator(
void
);
86
87
static
void
setClassDfltTimeThreshold(
DtTime
threshold);
88
89
protected
:
90
92
void
init(
const
DtEntityIdentifier
& vehId);
93
95
DtAggregatePublisher
(
const
DtAggregatePublisher
& orig);
96
98
DtAggregatePublisher
&
operator=
(
const
DtAggregatePublisher
& orig);
99
100
protected
:
101
102
DtObjectId
myId
;
103
DtAggregateStateDecoder
*
myAggregateDecoder
;
104
DtAggregateStateEncoder
*
myAggregateEncoder
;
105
106
protected
:
107
static
DtStateRepCreator
theStateRepCreator
;
108
static
DtTime
theClassDfltTimeThreshold
;
109
static
bool
theClassDfltIsSetFlag
;
110
};
111
112
113
inline
DtAggregateStateRepository
*
DtAggregatePublisher::asr
()
114
{
115
return
static_cast<
DtAggregateStateRepository
*
>
(
myStateRep
);
116
}
117
118
inline
const
DtObjectId
&
DtAggregatePublisher::localId
()
const
119
{
120
return
id
();
121
}
122
123
124
#endif
125
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
)