VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedUnderwaterAcousticsListDIS.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 
17 
18 class DtSystemHashKey;
20 
25 {
26 public:
27 
29  DtReflectedUnderwaterAcousticsList( DtExerciseConn* exConn, int numBucketsPrimeNumber = 503 );
30 
33 
34 public:
35 
38  virtual DtReflectedUnderwaterAcoustics* lookup(
39  const DtGlobalObjectDesignator& hostEntity ) const;
40 
42  virtual DtReflectedUnderwaterAcoustics* first() const;
43  virtual DtReflectedUnderwaterAcoustics* last() const;
44 
46  virtual void addUnderwaterAcousticsAdditionCallback(
47  DtUnderwaterAcousticsCallbackFunction cb, void* userData );
48  virtual void removeUnderwaterAcousticsAdditionCallback(
49  DtUnderwaterAcousticsCallbackFunction cb, void* userData );
50 
52  virtual void addUnderwaterAcousticsRemovalCallback(
53  DtUnderwaterAcousticsCallbackFunction cb, void* userData );
54  virtual void removeUnderwaterAcousticsRemovalCallback(
55  DtUnderwaterAcousticsCallbackFunction cb, void* userData );
56 
58  virtual void print() const;
59 
61  virtual void printDataToStream( std::ostream& stream ) const;
62 
63 protected:
64 
67  virtual DtReflectedUnderwaterAcoustics* newReflectedUnderwaterAcoustics(
68  const DtEntityIdentifier& hostEntity );
69 
71  virtual DtReflectedObject* newReflectedObj( const DtStateMsg& msg );
72 
75  virtual void objectAdded( DtReflectedObject* obj );
76 
83 
85  static void underwaterAcousticCb( DtUnderwaterAcousticPdu* pdu, void* usr );
86 
87 protected:
88 
91 
94 
95 protected:
96 
98 
99 };
100 
101 #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
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
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 DtReflectedUnderwaterAcoustics represent underwater acoustics objects simulated by remot...
Definition: reflectedUnderwaterAcousticsDIS.h:29
Instances of DtSystemHashKey are used as hash keys for an emitter system.
Definition: systemHashKey.h:18
Contains the DIS DtReflectedUnderwaterAcoustics class declaration.
DtObjectIdHashKey myHashKey
Definition: reflectedUnderwaterAcousticsListDIS.h:97
This file contains typedefs used to represent objects in a protocol neutral way.
Instances of this class provide a protocol independent interface to a list of underwater acoustics ob...
Definition: reflectedUnderwaterAcousticsListDIS.h:24
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
virtual DtReflectedObject * newReflectedObj(const DtStateMsg &msg)=0
Create a new object from a state message.
void(* DtUnderwaterAcousticsCallbackFunction)(DtReflectedUnderwaterAcoustics *, void *)
Callback function that takes a DtReflectedUnderwaterAcoustics and user data.
Definition: reflectedUnderwaterAcousticsDIS.h:23
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

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)