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
lgrDisReceiver.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2016 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#if DtDIS
13
14
15
#include "
lgrPublisherInterface.h
"
16
#include <
lgrSim/lgrSim.h
>
17
#include <
lgrUtil/virtualConstructor.h
>
18
#include <vl/radioReceiverEncoderDIS.h>
19
#include <vl/stateEncoder.h>
20
21
class
DtClock;
22
class
DtReceiverPdu;
23
class
DtRadioReceiverPublisher;
24
25
namespace
MAKLogger
26
{
27
class
DtAbsoluteTime
;
28
class
DtLgrDisSimulationManager;
29
30
//VR-Link workaround - derived encoder class to gain access to protected "myPdu" member variable.
31
class
DtLgrRadioReceiverEncoder
:
public
DtRadioReceiverEncoder
32
{
33
public
:
34
DtLgrRadioReceiverEncoder
() {};
35
~DtLgrRadioReceiverEncoder
() {};
36
37
DtReceiverPdu*
getEncoderPdu
() {
return
&myPdu; }
38
39
DtCLONE_ENCODER
(
DtLgrRadioReceiverEncoder
);
40
};
41
44
class
DT_DLL_LGRSIM
DtLgrDisReceiverPublisher
:
public
DtLgrPublisherInterface
45
{
46
public
:
47
DT_VIRTUAL_CTR
(
DtLgrDisReceiverPublisher
,(
const
DtReceiverPdu& pdu,
48
DtLgrDisSimulationManager
& simManager))
49
50
51
virtual
~
DtLgrDisReceiverPublisher
();
52
53
virtual
void
update(
const
DtPdu& pdu,
const
DtAbsoluteTime
& updateTime,
bool
isTimeFromPast,
54
bool
isStateUpdate,
double
scaling,
bool
isStatic,
bool
sendFlag);
55
56
virtual
void
sendUpdateAtScaleChangePoint(
57
double
oldScale,
double
newScale,
bool
wasStatic,
bool
isStatic);
58
60
virtual
void
tick(
double
scaling,
bool
isStatic);
61
62
protected
:
63
65
virtual
const
DtStateMsg& lastState()
const
;
66
68
virtual
void
tickVrlPublisher();
69
70
protected
:
71
DtRadioReceiverPublisher*
myPublisher
;
72
};
73
}
74
75
#endif
76
Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (
www.mak.com
)