VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reflectedNavAidHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #if DtHLA
9 
10 #include "navAidStateRepository.h"
11 #include <vl/reflectedObjectHLA.h>
12 
16 
17 class DtReflectedNavAid;
18 class DtNavAidDecoder;
19 
21 typedef void (*DtNavAidCallbackFunction)(DtReflectedNavAid* obj, void* userData);
22 
28 
30 {
31 public:
32 
34  typedef DtNavAidStateRepository* (*DtStateRepCreator)();
35 
37  typedef DtNavAidDecoder* (*DtDecoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
38 
39 public:
40 
42  DtReflectedNavAid(DtHlaObject* obj, DtExerciseConn* conn);
43 
45  virtual ~DtReflectedNavAid() override;
46 
48  virtual DtNavAidStateRepository* navAidStateRep() const;
49 
51  virtual DtNavAidStateRepository* nasr() const;
52 
54  virtual DtReflectedNavAid* next() const;
55 
57  virtual DtReflectedNavAid* prev() const;
58 
61  virtual DtReflectedNavAid* wrapNext() const;
62 
65  virtual DtReflectedNavAid* wrapPrev() const;
66 
68  virtual void addPostUpdateCallback(
69  DtNavAidCallbackFunction cb, void* userData);
70 
71  virtual void removePostUpdateCallback(
72  DtNavAidCallbackFunction cb, void* userData);
73 
74 public:
75 
77  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
78 
80  static DtDecoderCreator setDecoderCreator(DtDecoderCreator creator);
81 
82 protected:
83 
86 
88  DtReflectedNavAid& operator=(const DtReflectedNavAid& orig);
89 
90 protected:
91 
92  static DtStateRepCreator theStateRepCreator;
93  static DtDecoderCreator theDecoderCreator;
94 };
95 
97 {
99 }
100 
102 {
104 }
105 
106 #endif //DtHLA
107 
Instances of DtNavAidStateRepository are used to store state data for NavAid radio transmitter object...
Definition: navAidStateRepository.h:19
Instances of DtNavAidDecoder encode data from DtNavAidStateRepository objects to the net structures t...
Definition: navAidDecoderDIS.h:23
virtual DtNavAidStateRepository * navAidStateRep() const
Returns ptr to navAidStateRepository, through which you can inspect current state info...
Definition: reflectedNavAidHLA.h:96
The reflected object for a NavAid transmitter.
Definition: reflectedNavAidDIS.h:27
void(* DtNavAidCallbackFunction)(DtReflectedNavAid *obj, void *userData)
Callback function that takes a DtReflectedNavAid and usr data.
Definition: reflectedNavAidDIS.h:23
DtNavAidStateRepository * myStateRep
Definition: reflectedNavAidDIS.h:119
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23
virtual DtNavAidStateRepository * nasr() const
Synonym for navAidStateRep.
Definition: reflectedNavAidHLA.h:101

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)