VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedPropulsionNoiseDIS.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 
23 typedef void (*DtPropNoiseCallbackFunction)( DtReflectedPropulsionNoise*, void* );
24 
29 {
30 public:
31 
33  typedef DtPropulsionNoiseStateRepository* (*DtStateRepCreator)();
34 
35 public:
36 
39  const DtGlobalObjectDesignator& hostEntity );
40 
42  virtual ~DtReflectedPropulsionNoise();
43 
44 public:
45 
47  virtual inline DtPropulsionNoiseStateRepository* propulsionNoiseRep() const { return myStateRepository; }
48 
50  virtual inline DtPropulsionNoiseStateRepository* psr() const { return myStateRepository; }
51 
54  virtual inline DtStateRepository* stateRep() const { return myStateRepository; }
55 
57  virtual inline DtPropulsionNoiseDecoder* decoder() { return &myDecoder; }
58 
61  virtual void processStateMessage( const DtStateMsg& msg );
62 
64  virtual DtReflectedPropulsionNoise* next() const;
65 
67  virtual DtReflectedPropulsionNoise* prev() const;
68 
71  virtual DtReflectedPropulsionNoise* wrapNext() const;
72 
75  virtual DtReflectedPropulsionNoise* wrapPrev() const;
76 
78  virtual void addPostUpdateCallback( DtPropNoiseCallbackFunction cb, void* userData );
79  virtual void removePostUpdateCallback( DtPropNoiseCallbackFunction cb, void* userData );
80 
82  virtual inline const DtBaseHashKey& hashKey() const { return myHashKey; }
83 
85  virtual inline DtString idString() const { return myIdString; }
86 
89  virtual const DtGlobalObjectDesignator& globalId() const;
90 
91 public:
92 
94  static void setStateRepCreator( DtStateRepCreator creator );
95  static DtStateRepCreator stateRepCreator();
96 
97 protected:
98 
101 
104 
105 protected:
106 
107  static DtStateRepCreator theStateRepCreator;
108 
109 protected:
110 
111  DtObjectIdHashKey myHashKey;
112  DtString myIdString;
113  DtPropulsionNoiseStateRepository* myStateRepository;
115 
116 };
117 
118 #endif // DtDIS
DtHlaStateDecoder * myDecoder
Definition: reflectedObjectHLA.h:178
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#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 DtReflectedPropulsionNoise are used to represent a simulated EmbeddedSystem.UnderwaterAcousticsEmission.PropulsionNoise object reflected across a network.
Definition: reflectedPropulsionNoiseHLA.h:28
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:195
Contains the DIS DtPropulsionNoiseDecoder class declaration.
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
class DtPropulsionNoiseStateRepository
Definition: propulsionNoiseStateRepository.h:22
Contains the DtPropulsionNoiseStateRepository class declaration.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
class DtPropulsionNoiseDecoder
Definition: propulsionNoiseDecoderHLA.h:23
Instances of DtString are used to represent strings.
Definition: vlString.h:29
class DtStateMsg:
Definition: stateMsgHLA.h:32

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)