VR-Link API Documentation for DIS
 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 
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 
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 
119 
120 };
121 
122 #endif // DtDIS
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
DtActiveSonarStateRepository * myStateRepository
Definition: reflectedActiveSonarDIS.h:117
DtSystemHashKey myHashKey
Definition: reflectedActiveSonarDIS.h:115
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtReflectedActiveSonar represent active sonar object simulated by remote applications...
Definition: reflectedActiveSonarDIS.h:28
Contains the DtActiveSonarStateRepository class declaration.
Instances of DtSystemHashKey are used as hash keys for an emitter system.
Definition: systemHashKey.h:18
virtual DtActiveSonarStateRepository * activeSonarRep() const
Get the sonar&#39;s state repository.
Definition: reflectedActiveSonarDIS.h:47
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
virtual DtActiveSonarStateRepository * asr() const
Synonym for activeSonarRep().
Definition: reflectedActiveSonarDIS.h:53
Instances of DtActiveSonarDecoder are used to take state information from an emission state PDU and p...
Definition: activeSonarDecoderDIS.h:23
virtual DtString idString() const
Get a string identification of this object.
Definition: reflectedActiveSonarDIS.h:89
class DtActiveSonarStateRepository
Definition: activeSonarStateRepository.h:29
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
virtual const DtGlobalObjectDesignator & globalId() const =0
Get the Global ID for this object.
void * prev() const
Definition: vlList.h:277
void * wrapNext() const
Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit...
Definition: vlList.h:282
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
static DtStateRepCreator theStateRepCreator
Definition: reflectedActiveSonarDIS.h:111
DtString myIdString
Definition: reflectedActiveSonarDIS.h:116
virtual void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
void(* DtActiveSonarCallbackFunction)(DtReflectedActiveSonar *, void *)
Callback function that takes a DtReflectedActiveSonar and user data.
Definition: reflectedActiveSonarDIS.h:23
virtual DtActiveSonarDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages.
Definition: reflectedActiveSonarDIS.h:60
void * wrapPrev() const
Definition: vlList.h:288
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository through which you can inspect current state information...
Definition: reflectedActiveSonarDIS.h:57
Instances of DtString are used to represent strings.
Definition: vlString.h:36
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
virtual const DtBaseHashKey & hashKey() const
Get a hash key for this object.
Definition: reflectedActiveSonarDIS.h:86
DtActiveSonarDecoder myDecoder
Definition: reflectedActiveSonarDIS.h:118

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)