VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
navAidPublisherHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2021 MAK Technologies
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #if DtHLA
8 
9 #pragma once
10 
11 #include <vl/objectPublisherHLA.h>
13 
17 
19 class DtNavAidDecoder;
20 class DtNavAidEncoder;
21 
28 
30 {
31 public:
32 
35  typedef DtNavAidStateRepository* (*DtStateRepCreator)();
36 
38  typedef DtNavAidDecoder* (*DtDecoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
39 
41  typedef DtNavAidEncoder* (*DtEncoderCreator)(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
42 
43 public:
44 
47  DtNavAidStateRepository *stateRepToUse,
48  DtExerciseConn* conn,
49  const char* name = 0,
50  const DtDDMRegionSet* regionSetToUse = 0);
51 
54  RTI::ObjectClassHandle h,
55  DtExerciseConn* conn,
56  const char* name = 0,
57  const DtDDMRegionSet* regionSetToUse = 0);
58 
61  DtExerciseConn* conn,
62  const char* name = 0,
63  const DtDDMRegionSet* regionSetToUse = 0);
64 
71  DtHlaObjectWithStateRep* obj,
72  DtExerciseConn* conn);
73 
75  virtual ~DtNavAidPublisher();
76 
79  virtual DtNavAidStateRepository* navAidStateRep();
80 
82  virtual DtNavAidStateRepository* nasr();
83 
86  virtual const char* classToUse() const;
87 
88 public:
89 
91  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
92 
94  static DtEncoderCreator setEncoderCreator(DtEncoderCreator creator);
95 
97  static DtDecoderCreator setDecoderCreator(DtDecoderCreator creator);
98 
99 protected:
100 
105  DtNavAidPublisher(const char* name = 0, const DtDDMRegionSet* regionSetToUse = 0);
106 
109 
111  DtNavAidPublisher& operator=(const DtNavAidPublisher& orig);
112 
113 protected:
114 
115  static DtStateRepCreator theStateRepCreator;
116  static DtEncoderCreator theEncoderCreator;
117  static DtDecoderCreator theDecoderCreator;
118 };
119 
121 {
122  return (DtNavAidStateRepository*) myStateRep;
123 }
124 
126 {
127  return (DtNavAidStateRepository*) myStateRep;
128 }
129 
130 #endif //DtHLA
131 
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 * nasr()
Synonym for environmentProcessStateRep()
Definition: navAidPublisherDIS.h:181
Instances of DtNavAidPublisher are used for publishing simulation data of NavAids such as TACAN...
Definition: navAidPublisherDIS.h:23
Instances of DtNavAidEncoder encode data from DtNavAidStateRepository objects to the net structures t...
Definition: navAidEncoderDIS.h:21
virtual DtNavAidStateRepository * navAidStateRep()
Returns a pointer to the NavAid state repository - through which you can set or inspect current state...
Definition: navAidPublisherHLA.h:120
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)