MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrDisReceiver.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
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>
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 
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
#define DT_VIRTUAL_CTR(CLASS_NAME, ARG_TYPES_LIST)
Declare a Virtual Constructor Create using DT_VIRTUAL_CTR(CLASS_NAME,ARG_TYPES_LIST) Where CLASS_NAME...
Definition: virtualConstructor.h:34
Contains MAKLogger::DtLgrPublisherInterface class.
Contains DT_VIRTUAL_CTR DT_VIRTUAL_CTR_DEFAULTS DT_VIRTUAL_COPY_ASSIGN DT_VIRTUAL_BASE_CTR DT_PURE_VI...
class DT_DLL_LGRUTIL DtAbsoluteTime
Definition: absoluteTime.h:22

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)