VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disBroker/disBroker/radioReceiverTrans.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/radioReceiverPublisher.h>
14 #include <vl/reflectedRadioReceiverList.h>
15 
16 class DtReflectedRadioReceiver;
17 class DtRadioReceiverRepository;
18 
19 #define RADIO_RECV_TEMPLATE_ARGS \
20  DtPortalRadioReceiverObject, DtPortalReflectedRadioReceiverObject, \
21  DtReflectedRadioReceiver, DtReflectedRadioReceiverList, \
22  DtRadioReceiverRepository, DtRadioReceiverPublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  class DtPortalRadioReceiverObject;
28 
29  namespace DtDisBroker
30  {
31 
32  template <>
33  DT_DLL_DISBROKER DtEntityIdentifier
36  const DtString& identifier );
37 
38  template <>
39  DT_DLL_DISBROKER DtObjectPublisher*
42  const DtEntityIdentifier& objectName );
43 
44 
48  : public DtDisObjectTranslator<RADIO_RECV_TEMPLATE_ARGS>
49  {
50  public:
51 
53  Dt_DEF_TRANSLATOR_NAME( "Radio Receiver" );
54 
57 
60 
61  protected:
62 
65  virtual bool isDisPublishable( const DtBrokerObject* brokerObject,
67 
73  virtual DtString disObjectName( const DtPortalReflectedRadioReceiverObject* refObj ) const;
74 
76  virtual void updateDisBrokerObject( DtBrokerObject* brokerObj,
77  const DtRadioReceiverRepository& sr );
78 
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 DtReflectedRadioReceiver* refObj ) const;
90 
92  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
93  const DtPortalRadioReceiverObject& sr );
94 
97  virtual bool performPortalGlobalIdMapping(
98  const DtPortalRadioReceiverObjectPublisher* publisher,
99  const DtReflectedRadioReceiver& refObj,
100  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
101  int systemId /* = DtGlobalIdMapper::NoSystemId */,
102  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
103 
106  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
107 
109  virtual DtPortalRadioReceiverObject* translate( DtPortalRadioReceiverObject* destination,
110  const DtRadioReceiverRepository& source, const DtReflectedRadioReceiver& refObj );
111 
113  virtual DtRadioReceiverRepository* translate( DtRadioReceiverRepository* destination,
115 
116  };
117 
118  }
119 }

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)