VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedPropulsionNoiseListDIS.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 
17 
18 class DtSystemHashKey;
20 
25 {
26 public:
27 
29  DtReflectedPropulsionNoiseList( DtExerciseConn* exConn, int numBucketsPrimeNumber = 503 );
30 
33 
35  virtual DtReflectedPropulsionNoise* lookup(
36  const DtGlobalObjectDesignator& hostEntity ) const;
37 
39  virtual DtReflectedPropulsionNoise* first() const;
40  virtual DtReflectedPropulsionNoise* last() const;
41 
43  virtual void addPropulsionNoiseAdditionCallback(
44  DtPropNoiseCallbackFunction cb, void* userData );
45  virtual void removePropulsionNoiseAdditionCallback(
46  DtPropNoiseCallbackFunction cb, void* userData );
47 
49  virtual void addPropulsionNoiseRemovalCallback(
50  DtPropNoiseCallbackFunction cb, void* userData );
51  virtual void removePropulsionNoiseRemovalCallback(
52  DtPropNoiseCallbackFunction cb, void* userData );
53 
55  virtual void print() const;
56 
58  virtual void printDataToStream( std::ostream& stream ) const;
59 
60 protected:
61 
63  static void underwaterAcousticCb( DtUnderwaterAcousticPdu* pdu, void* usr );
64 
66  virtual DtReflectedObject* newReflectedPropulsionNoise(
67  const DtGlobalObjectDesignator& hostEntity );
68 
70  virtual DtReflectedObject* newReflectedObj( const DtStateMsg& msg );
71 
75  virtual int acceptPdu( const DtStateMsg& msg ) const;
76 
79  virtual void objectAdded( DtReflectedObject* obj );
80 
82  virtual const DtBaseHashKey&
83  hashKeyFromStateMessage( const DtStateMsg* msg );
84 
85 protected:
86 
89 
92 
93 protected:
94 
96 
97 };
98 
99 #endif // DtDIS
Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.
Definition: entityIdentifierHashKey.h:21
virtual void print() const
Print the SRs of all objects.
Instances of DtReflectedObjectList are lists of instances of classes derived from DtReflectedObject...
Definition: reflectedObjectListDIS.h:38
void(* DtPropNoiseCallbackFunction)(DtReflectedPropulsionNoise *, void *)
Callback function that takes a DtReflectedPropulsionNoise and user data.
Definition: reflectedPropulsionNoiseDIS.h:23
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
virtual const DtBaseHashKey & hashKeyFromStateMessage(const DtStateMsg *msg)=0
Get a hash key from a state message.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Instances of DtUnderwaterAcousticPdu are used to send information about simulated underwater acoustic...
Definition: underwaterAcousticPdu.h:39
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
Instances of DtReflectedPropulsionNoise represent propulsion noise object simulated by remote applica...
Definition: reflectedPropulsionNoiseDIS.h:28
virtual int acceptPdu(const DtStateMsg &) const
Determines if a PDU should be processed or not.
This file contains typedefs used to represent objects in a protocol neutral way.
DtReflectedObjectList & operator=(const DtReflectedObjectList &orig)
assignment operator – not implemented
Instances of DtReflectedObject are used to represent a simulation entity reflected across a network (...
Definition: reflectedObjectDIS.h:34
Instances of DtEntityIdentifier are used as a unique ID for entities in DIS.
Definition: entityIdentifier.h:31
DtObjectIdHashKey myHashKey
Definition: reflectedPropulsionNoiseListDIS.h:95
virtual DtReflectedObject * newReflectedObj(const DtStateMsg &msg)=0
Create a new object from a state message.
virtual void objectAdded(DtReflectedObject *object)
Called after a remote object has been added to the list.
Instances of DtStateMsg are used to represent state data communicated via the network in a DIS (as op...
Definition: stateMsgDIS.h:21
Instances of this class provide a protocol independent interface to a list of reflected propulsion no...
Definition: reflectedPropulsionNoiseListDIS.h:24

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)