VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disBroker/disBroker/emitterSystemTrans.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <disBroker/disTrans.h>
13 #include <vl/emitterSystemPublisher.h>
14 #include <vl/reflectedEmitterSystemList.h>
15 
16 class DtEmitterBeamRepository;
17 class DtEmitterSystemRepository;
18 class DtReflectedEmitterSystem;
19 
20 #define EMITTER_TEMPLATE_ARGS \
21  DtPortalEmitterSystemObject, DtPortalReflectedEmitterSystemObject, \
22  DtReflectedEmitterSystem, DtReflectedEmitterSystemList, \
23  DtEmitterSystemRepository, DtEmitterSystemPublisher
24 
25 namespace MAKVrExchange
26 {
27 
28  namespace DtDisBroker
29  {
30 
34  : public DtDisObjectTranslator<EMITTER_TEMPLATE_ARGS>
35  {
36  public:
37 
39  Dt_DEF_TRANSLATOR_NAME( "Emitter System" );
40 
43 
46 
47  protected:
48 
51  virtual bool isDisPublishable( const DtBrokerObject* brokerObject,
53 
59  virtual DtString disObjectName( const DtPortalReflectedEmitterSystemObject* refObj ) const;
60 
62  virtual void updateDisBrokerObject( DtBrokerObject* brokerObj,
63  const DtEmitterSystemRepository& sr );
64 
69  virtual bool performDisGlobalIdMapping( const DtObjectPublisher* publisher,
71  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
72  int systemId /* = DtGlobalIdMapper::NoSystemId */,
73  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
74 
77  virtual DtString portalObjectName( const DtReflectedEmitterSystem* refObj ) const;
78 
80  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
81  const DtPortalEmitterSystemObject& sr );
82 
86  virtual bool performPortalGlobalIdMapping(
87  const DtPortalEmitterSystemObjectPublisher* publisher,
88  const DtReflectedEmitterSystem& refObj,
89  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
90  int systemId /* = DtGlobalIdMapper::NoSystemId */,
91  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
92 
95  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
96 
98  virtual DtPortalEmitterSystemObject* translate( DtPortalEmitterSystemObject* destination,
99  const DtEmitterSystemRepository& source, const DtReflectedEmitterSystem& refObj );
100 
102  virtual DtEmitterBeamData* translate( DtEmitterBeamData* destination,
103  const DtEmitterBeamRepository& source );
104 
106  virtual DtEmitterSystemRepository* translate( DtEmitterSystemRepository* destination,
108 
110  virtual DtEmitterBeamRepository* translate( DtEmitterBeamRepository* destination,
111  const DtEmitterBeamData& source );
112 
113  };
114 
115  }
116 }
117 

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)