WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tenaBroker/tenaBroker/radioReceiverTranslator.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 
15 #include <vl/radioReceiverRepository.h>
16 
17 #define RADIO_RECV_TEMPLATE_ARGS \
18  DtPortalRadioReceiverObject, DtPortalReflectedRadioReceiverObject, \
19  DtReflectedRadioReceiver, DtReflectedRadioReceiverList, \
20  DtRadioReceiverRepository, DtRadioReceiverPublisher
21 
22 namespace MAKVrExchange
23 {
24 
25  namespace DtTenaBroker
26  {
27 
31  : public DtTenaObjectTranslator<RADIO_RECV_TEMPLATE_ARGS>
32  {
33  public:
34 
36  Dt_DEF_TRANSLATOR_NAME( "Radio Receiver" );
37 
40 
42  virtual ~DtRadioReceiverTranslator();
43 
44  protected:
45 
48  virtual bool isTenaPublishable( DtBrokerObject* brokerObj,
50 
52  virtual DtString tenaObjectName( const DtPortalReflectedRadioReceiverObject* refObj ) const;
53 
56  virtual DtObjectPublisher* instantiateTenaPublisher(
58  const DtEntityIdentifier& objectName );
59 
62  virtual bool performTenaGlobalIdMapping( const DtObjectPublisher* publisher,
64  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
65  int systemId /* = DtGlobalIdMapper::NoSystemId */,
66  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
67 
70  virtual DtString portalObjectName( const DtReflectedRadioReceiver* refObj ) const;
71 
74  virtual bool performPortalGlobalIdMapping(
75  const DtPortalRadioReceiverObjectPublisher* publisher,
76  const DtReflectedRadioReceiver& refObj,
77  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
78  int systemId /* = DtGlobalIdMapper::NoSystemId */,
79  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
80 
82  virtual DtPortalRadioReceiverObject* translate(
83  DtPortalRadioReceiverObject* destination,
84  const DtRadioReceiverRepository& source,
85  const DtReflectedRadioReceiver& refObj );
86 
88  virtual DtRadioReceiverRepository* translate(
89  DtRadioReceiverRepository* destination,
90  const DtPortalRadioReceiverObject& source,
92 
93  };
94 
95  }
96 }
#define DT_DLL_TENABROKER
Definition: brokers/tenaBroker/tenaBroker/dllExport.h:26
Provides Radio Receiver object translation between TENA and the VR-Exchange Portal.
Definition: tenaBroker/tenaBroker/radioReceiverTranslator.h:30
Provides container to hold pointers to Protocol/Portal objects.
Definition: brokerObject.h:24
Contains the DtReflectedRadioReceiverList class declaration.
ObjectType
Definition: tenaBroker/tenaBroker/globalIdMapper.h:55
A simple template class to hold different types of State Repositories.
Definition: pObjectPublisher.h:68
Contains the DtRadioReceiverPublisher class declaration.
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
Base class for all TENA object translators.
Definition: tenaTranslator.h:88
#define Dt_DEF_TRANSLATOR_NAME(strname)
Definition: translator.h:16
Portal Radio Receiver Object class.
Definition: pRadioReceiverObject.h:19

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)