VR-Link API Documentation for DIS
 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 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/objectIdHashKey.h>
18 
20 
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 
115 
116 };
117 
118 #endif // DtDIS
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
DtPropulsionNoiseStateRepository * myStateRepository
Definition: reflectedPropulsionNoiseDIS.h:113
void(* DtPropNoiseCallbackFunction)(DtReflectedPropulsionNoise *, void *)
Callback function that takes a DtReflectedPropulsionNoise and user data.
Definition: reflectedPropulsionNoiseDIS.h:23
virtual DtPropulsionNoiseDecoder * decoder()
Returns a pointer to the Decoder being used to decode state messages.
Definition: reflectedPropulsionNoiseDIS.h:57
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&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual const DtBaseHashKey & hashKey() const
Get a hash key for this object.
Definition: reflectedPropulsionNoiseDIS.h:82
DtBaseHashKey is an abstract base class for hash keys.
Definition: vlHashKeys.h:39
Instances of DtReflectedPropulsionNoise represent propulsion noise object simulated by remote applica...
Definition: reflectedPropulsionNoiseDIS.h:28
DtReflectedObject & operator=(const DtReflectedObject &orig)
assignment operator – not implemented
DtObjectIdHashKey myHashKey
Definition: reflectedPropulsionNoiseDIS.h:111
Contains the DIS DtPropulsionNoiseDecoder class declaration.
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
class DtPropulsionNoiseStateRepository
Definition: propulsionNoiseStateRepository.h:22
Contains the DtPropulsionNoiseStateRepository class declaration.
virtual const DtGlobalObjectDesignator & globalId() const =0
Get the Global ID for this object.
virtual DtPropulsionNoiseStateRepository * propulsionNoiseRep() const
Get the propulsion noise state repository.
Definition: reflectedPropulsionNoiseDIS.h:47
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
virtual DtString idString() const
Get a string identification of this object.
Definition: reflectedPropulsionNoiseDIS.h:85
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 void processStateMessage(const DtStateMsg &msg)
Process an entity state PDU.
DtPropulsionNoiseDecoder myDecoder
Definition: reflectedPropulsionNoiseDIS.h:114
static DtStateRepCreator theStateRepCreator
Definition: reflectedPropulsionNoiseDIS.h:107
virtual DtPropulsionNoiseStateRepository * psr() const
Synonym for propulsionNoiseRep().
Definition: reflectedPropulsionNoiseDIS.h:50
Instances of DtPropulsionNoiseDecoder are used to take state information from an emission state PDU a...
Definition: propulsionNoiseDecoderDIS.h:23
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: reflectedPropulsionNoiseDIS.h:54
DtString myIdString
Definition: reflectedPropulsionNoiseDIS.h:112
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)