VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedActiveSonarDIS.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 
16 #include <vl/reflectedObjectDIS.h>
17 #include <vl/systemHashKey.h>
18 
20 
23 typedef void (*DtActiveSonarCallbackFunction)( DtReflectedActiveSonar*, void* );
24 
29 {
30 public:
31 
33  typedef DtActiveSonarStateRepository* (*DtStateRepCreator)();
34 
35 public:
36 
39  const DtGlobalObjectDesignator& hostEntity, int acousticId );
40 
42  virtual ~DtReflectedActiveSonar();
43 
44 public:
45 
47  virtual inline DtActiveSonarStateRepository* activeSonarRep() const
48  {
49  return myStateRepository;
50  }
51 
53  virtual inline DtActiveSonarStateRepository* asr() const { return myStateRepository; }
54 
57  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
58 
60  virtual inline DtActiveSonarDecoder* decoder() { return &myDecoder; }
61 
64  virtual void processStateMessage( const DtStateMsg& msg );
65 
67  virtual DtReflectedActiveSonar* next() const;
68 
70  virtual DtReflectedActiveSonar* prev() const;
71 
74  virtual DtReflectedActiveSonar* wrapNext() const;
75 
78  virtual DtReflectedActiveSonar* wrapPrev() const;
79 
81  virtual void addPostUpdateCallback( DtActiveSonarCallbackFunction cb, void* userData );
82 
83  virtual void removePostUpdateCallback( DtActiveSonarCallbackFunction cb, void* userData );
84 
86  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
87 
89  virtual inline DtString idString() const { return myIdString; }
90 
93  virtual const DtGlobalObjectDesignator& globalId() const;
94 
95 public:
96 
98  static void setStateRepCreator( DtStateRepCreator creator );
99  static DtStateRepCreator stateRepCreator();
100 
101 protected:
102 
105 
108 
109 protected:
110 
111  static DtStateRepCreator theStateRepCreator;
112 
113 protected:
114 
115  DtSystemHashKey myHashKey;
116  DtString myIdString;
117  DtActiveSonarStateRepository* myStateRepository;
119 
120 };
121 
122 #endif // DtDIS
DtHlaStateDecoder * myDecoder
Definition: reflectedObjectHLA.h:181
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtReflectedActiveSonar are used to represent a simulated EmbeddedSystem.UnderwaterAcousticsEmission.ActiveSonar object reflected across a network.
Definition: reflectedActiveSonarHLA.h:28
Contains the DtActiveSonarStateRepository class declaration.
Instances of DtSystemHashKey are used as hash keys for an emitter system.
Definition: systemHashKey.h:18
virtual DtHlaStateDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages into our SR. ...
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – Not Implemented
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository - through which you can inspect current state information...
Definition: reflectedObjectHLA.h:198
class DtActiveSonarDecoder
Definition: activeSonarDecoderHLA.h:23
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
virtual const DtGlobalObjectDesignator & globalId() const
Get the HLA object&#39;s global object designator - the object name in HLA.
class DtReflectedObject:
Definition: reflectedObjectHLA.h:36
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtString are used to represent strings.
Definition: vlString.h:36
class DtStateMsg:
Definition: stateMsgHLA.h:32
void(* DtActiveSonarCallbackFunction)(DtReflectedActiveSonar *obj, void *usr)
Callback function that takes a DtReflectedObject and user data.
Definition: reflectedActiveSonarHLA.h:21

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)