WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disBroker/disBroker/propulsionNoiseTranslator.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/reflectedPropulsionNoiseList.h>
14 #include <vl/propulsionNoisePublisher.h>
15 
16 class DtReflectedPropulsionNoise;
17 class DtPropulsionNoiseStateRepository;
18 
19 #define PROP_NOISE_TEMPLATE_ARGS \
20  DtPortalPropulsionNoiseObject, DtPortalReflectedPropulsionNoiseObject, \
21  DtReflectedPropulsionNoise, DtReflectedPropulsionNoiseList, \
22  DtPropulsionNoiseStateRepository, DtPropulsionNoisePublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  class DtPortalPropulsionNoiseObject;
28 
29  namespace DtDisBroker
30  {
31 
35  : public DtUnderwaterAcousticTranslator<PROP_NOISE_TEMPLATE_ARGS>
36  {
37  public:
38 
40  Dt_DEF_TRANSLATOR_NAME( "Propulsion Noise" );
41 
44 
46  virtual ~DtPropulsionNoiseTranslator();
47 
48  protected:
49 
52  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
54 
63  virtual DtObjectPublisher* instantiateDisPublisher(
65  const DtEntityIdentifier& name );
66 
69  virtual void createDisPublisher( DtBrokerObject* brokerObject );
70 
73  virtual DtString portalObjectName( const DtReflectedPropulsionNoise* refObj ) const;
74 
77  virtual bool performPortalGlobalIdMapping(
78  const DtPortalPropulsionNoisePublisher* publisher,
79  const DtReflectedPropulsionNoise& refObj,
80  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
81  int systemId /* = DtGlobalIdMapper::NoSystemId */,
82  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
83 
86  virtual void receivePortalUpdate( const DtPortalReflectedPropulsionNoiseObject& object );
87 
91  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
92 
94  virtual DtPortalPropulsionNoiseObject* translate( DtPortalPropulsionNoiseObject* destination,
95  const DtPropulsionNoiseStateRepository& source, const DtReflectedPropulsionNoise& refObj );
96 
98  virtual DtPropulsionNoiseStateRepository* translate( DtPropulsionNoiseStateRepository* destination,
100 
102  virtual DtShaftRateData* translate( DtShaftRateData* destination,
103  const DtUnderwaterAcousticShaftSpeed& source );
104 
106  virtual DtUnderwaterAcousticShaftSpeed* translate(
107  DtUnderwaterAcousticShaftSpeed* destination,
108  const DtShaftRateData& source );
109 
110  };
111 
112  }
113 }
ObjectType
Definition: disBroker/disBroker/globalIdMapper.h:65
Provides Propulsion Noise translation between DIS and the VR-Exchange Portal.
Definition: disBroker/disBroker/propulsionNoiseTranslator.h:34
Messages which represent Propulsion Noise with state.
Definition: pPropulsionNoiseObject.h:20
Provides container to hold pointers to Protocol/Portal objects.
Definition: brokerObject.h:24
A simple template class to hold different types of State Repositories.
Definition: pObjectPublisher.h:68
Base class for all broker objects.
Definition: broker.h:58
A template to create reflected object types for each type of object message.
Definition: pReflectedObject.h:58
#define Dt_DEF_TRANSLATOR_NAME(strname)
Definition: translator.h:16
#define DT_DLL_DISBROKER
Definition: brokers/disBroker/disBroker/dllExport.h:20
Base class for all embedded system translators.
Definition: disBroker/disBroker/underwaterAcousticTranslator.h:44
Represents Propulsion Noise Shaft Rate Data.
Definition: shaftRateData.h:25

Document ID: Generated on Wed Mar 12 15:05:17 EDT 2025 from SVN revision 274272
Copyright © 2005-2025 MAK Technologies. All Rights Reserved (www.mak.com)