VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
disBroker/disBroker/propulsionNoiseTranslator.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
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 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)