VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedUnderwaterAcousticsDIS.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtDIS
13 
16 #include <vl/reflectedObjectDIS.h>
17 #include <vl/objectIdHashKey.h>
18 
20 
24 
30 {
31 public:
32 
34  typedef DtUnderwaterAcousticsStateRepository* (*DtStateRepCreator)();
35 
36 public:
37 
40  const DtGlobalObjectDesignator& hostEntity );
41 
44 
45 public:
46 
48  virtual inline DtUnderwaterAcousticsStateRepository* underwaterAcousticsStateRep() const
49  {
50  return myStateRepository;
51  }
52 
54  virtual inline DtUnderwaterAcousticsStateRepository* usr() const { return myStateRepository; }
55 
58  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
59 
61  virtual inline DtUnderwaterAcousticsDecoder* decoder() { return &myDecoder; }
62 
65  virtual void processStateMessage( const DtStateMsg& msg );
66 
68  virtual DtReflectedUnderwaterAcoustics* next() const;
69 
71  virtual DtReflectedUnderwaterAcoustics* prev() const;
72 
75  virtual DtReflectedUnderwaterAcoustics* wrapNext() const;
76 
79  virtual DtReflectedUnderwaterAcoustics* wrapPrev() const;
80 
82  virtual void addPostUpdateCallback( DtUnderwaterAcousticsCallbackFunction cb, void* usr );
83 
84  virtual void removePostUpdateCallback( DtUnderwaterAcousticsCallbackFunction cb, void* usr );
85 
87  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
88 
90  virtual inline DtString idString() const { return myIdString; }
91 
94  virtual const DtGlobalObjectDesignator& globalId() const;
95 
96 public:
97 
99  static void setStateRepCreator( DtStateRepCreator creator );
100  static DtStateRepCreator stateRepCreator();
101 
102 protected:
103 
106 
109 
110 protected:
111 
112  static DtStateRepCreator theStateRepCreator;
113 
114  DtObjectIdHashKey myHashKey;
115  DtString myIdString;
116  DtUnderwaterAcousticsStateRepository* myStateRepository;
117  DtUnderwaterAcousticsDecoder myDecoder;
118 
119 };
120 
121 #endif // DtDIS
DtHlaStateDecoder * myDecoder
Definition: reflectedObjectHLA.h:181
Contains the DtUnderwaterAcousticsStateRepository class declaration.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtObjectIdHashKey are hash keys made from DtObjectIds.
Definition: objectIdHashKey.h:22
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtReflectedUnderwaterAcoustics represent EmitterSystem objects simulated by remote appli...
Definition: reflectedUnderwaterAcousticsHLA.h:28
virtual DtHlaStateDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages into our SR. ...
void(* DtUnderwaterAcousticsCallbackFunction)(DtReflectedUnderwaterAcoustics *obj, void *userData)
Callback function that takes a DtReflectedObject and user data.
Definition: reflectedUnderwaterAcousticsHLA.h:21
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
Contains the DIS DtUnderwaterAcousticsDecoder class declaration.
Instances of DtUnderwaterAcousticsStateRepository are used to store state data for all underwater aco...
Definition: underwaterAcousticsStateRepository.h:37
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:29
class DtStateMsg:
Definition: stateMsgHLA.h:32

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)