VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
disBroker/disBroker/environmentProcessTranslator.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/environmentProcessPublisher.h>
14 #include <vl/reflectedEnvironmentProcessList.h>
15 
16 class DtReflectedEnvironmentProcess;
17 class DtEnvironmentProcessRepository;
18 
19 #define ENV_PROC_TEMPLATE_ARGS \
20  DtPortalEnvironmentProcessObject, DtPortalReflectedEnvironmentProcessObject, \
21  DtReflectedEnvironmentProcess, DtReflectedEnvironmentProcessList, \
22  DtEnvironmentProcessRepository, DtEnvironmentProcessPublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  namespace DtDisBroker
28  {
29 
30  template <>
31  DT_DLL_DISBROKER DtEntityIdentifier
34  const DtString& identifier );
35 
36  template <>
37  DT_DLL_DISBROKER DtObjectPublisher*
40  const DtEntityIdentifier& objectName );
41 
42 
46  : public DtDisObjectTranslator<ENV_PROC_TEMPLATE_ARGS>
47  {
48  public:
49 
51  Dt_DEF_TRANSLATOR_NAME( "Environment Process" );
52 
55 
58 
59  protected:
60 
63  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
65 
71  virtual DtString disObjectName( const DtPortalReflectedEnvironmentProcessObject* refObj ) const;
72 
74  virtual void updateDisBrokerObject( DtBrokerObject* brokerObj,
75  const DtEnvironmentProcessRepository& sr );
76 
81  virtual bool performDisGlobalIdMapping( const DtObjectPublisher* publisher,
83  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
84  int systemId /* = DtGlobalIdMapper::NoSystemId */,
85  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
86 
89  virtual DtString portalObjectName( const DtReflectedEnvironmentProcess* refObj ) const;
90 
92  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
94 
99  virtual bool performPortalGlobalIdMapping(
101  const DtReflectedEnvironmentProcess& refObj,
102  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
103  int systemId /* = DtGlobalIdMapper::NoSystemId */,
104  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
105 
107  virtual DtPortalEnvironmentProcessObject* translate(
109  const DtEnvironmentProcessRepository& source,
110  const DtReflectedEnvironmentProcess& refObj );
111 
113  virtual DtEnvironmentProcessRepository* translate(
114  DtEnvironmentProcessRepository* destination,
115  const DtPortalEnvironmentProcessObject& source,
117 
118  };
119 
120  }
121 }

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)