VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedDesignatorDIS.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2026 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
9 
10 #ifndef DtDisReflectedDesignator_H_
11 #define DtDisReflectedDesignator_H_
12 
13 #if DtDIS
14 
15 
16 #include "designatorRepository.h"
17 #include "designatorDecoderDIS.h"
18 #include "reflectedObjectDIS.h"
19 #include "systemHashKey.h"
20 
21 
23 
27 
32 {
33 public:
34 
36  typedef DtDesignatorRepository* (*DtStateRepCreator)();
37 
38 public:
39 
42  const DtGlobalObjectDesignator& designatingEntity,
43  DtDesignatorCodeName designatorCodeName );
44 
46  virtual ~DtReflectedDesignator();
47 
48 
49 public:
51  virtual inline DtDesignatorRepository* designatorRep() const { return myStateRepository; }
52 
54  virtual inline DtDesignatorRepository* dsr() const { return myStateRepository; }
55 
58  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
59 
61  virtual inline DtDesignatorDecoder* decoder() { return myDecoder; }
62 
65  virtual void processStateMessage( const DtStateMsg& msg );
66 
68  virtual DtReflectedDesignator* next() const;
69 
71  virtual DtReflectedDesignator* prev() const;
72 
75  virtual DtReflectedDesignator* wrapNext() const;
76 
79  virtual DtReflectedDesignator* wrapPrev() const;
80 
82  virtual void addPostUpdateCallback(
83  DtDesignatorCallbackFunction cb, void* userData );
84 
85  virtual void removePostUpdateCallback(
86  DtDesignatorCallbackFunction cb, void* userData );
87 
89  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
90 
92  virtual inline DtString idString() const { return myIdString; }
93 
96  virtual const DtGlobalObjectDesignator& globalId() const;
97 
98 public:
100  static void setStateRepCreator(DtStateRepCreator creator);
101  static DtStateRepCreator stateRepCreator(void);
102 
103 protected:
104 
107 
110 
111 protected:
112 
113  static DtStateRepCreator theStateRepCreator;
114 
115 protected:
116 
121 };
122 
123 
124 #endif
125 
126 #endif
127 
void * next() const
Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list...
Definition: vlList.h:272
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:63
DtDesignatorDecoder * myDecoder
Definition: reflectedDesignatorDIS.h:120
#define DT_DLL_VL
Definition: vlMachineTypes.h:120
virtual const DtBaseHashKey & hashKey() const
Get a hash key for this object.
Definition: reflectedDesignatorDIS.h:89
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtSystemHashKey are used as hash keys for an emitter system.
Definition: systemHashKey.h:18
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
DtDesignatorRepository * myStateRepository
Definition: reflectedDesignatorDIS.h:119
void(* DtDesignatorCallbackFunction)(DtReflectedDesignator *, void *)
Callback function that takes a DtReflectedDesignator and user data.
Definition: reflectedDesignatorDIS.h:26
virtual DtStateRepository * stateRep() const
Returns a pointer to the StateRepository through which you can inspect current state information...
Definition: reflectedDesignatorDIS.h:58
DtDesignatorCodeName
Definition: disEnums.h:728
Instances of DtReflectedDesignator represent designator object simulated by remote applications...
Definition: reflectedDesignatorDIS.h:31
DtString myIdString
Definition: reflectedDesignatorDIS.h:118
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.
virtual DtDesignatorRepository * designatorRep() const
Get the designator's state repository.
Definition: reflectedDesignatorDIS.h:51
void * prev() const
Definition: vlList.h:277
static DtStateRepCreator theStateRepCreator
Definition: reflectedDesignatorDIS.h:113
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
virtual DtDesignatorRepository * dsr() const
Synonym for designatorRep().
Definition: reflectedDesignatorDIS.h:54
DtSystemHashKey myHashKey
Definition: reflectedDesignatorDIS.h:117
virtual void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
virtual DtDesignatorDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages.
Definition: reflectedDesignatorDIS.h:61
void * wrapPrev() const
Definition: vlList.h:288
virtual DtString idString() const
Get a string identification of this object.
Definition: reflectedDesignatorDIS.h:92
class DtDesignatorRepository:
Definition: designatorRepository.h:20
Instances of DtString are used to represent strings.
Definition: vlString.h:38
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
Definition: designatorDecoderDIS.h:19

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)