VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disBroker/disBroker/radioReceiverTranslator.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vl/reflectedRadioReceiverList.h>
14 #include <vl/radioReceiverPublisher.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 DtEmbeddedSystemTranslator<RADIO_RECV_TEMPLATE_ARGS>
49  {
50  public:
51 
53  Dt_DEF_TRANSLATOR_NAME( "Radio Receiver" );
54 
56  DtRadioReceiverTranslator( DtBroker* disBroker );
57 
59  virtual ~DtRadioReceiverTranslator();
60 
61  protected:
62 
65  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
67 
70  virtual bool performDisGlobalIdMapping( const DtObjectPublisher* publisher,
72  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
73  int systemId /* = DtGlobalIdMapper::NoSystemId */,
74  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
75 
78  virtual DtString portalObjectName( const DtReflectedRadioReceiver* refObj ) const;
79 
82  virtual bool performPortalGlobalIdMapping(
83  const DtPortalRadioReceiverObjectPublisher* publisher,
84  const DtReflectedRadioReceiver& refObj,
85  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
86  int systemId /* = DtGlobalIdMapper::NoSystemId */,
87  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
88 
91  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
92 
94  virtual DtPortalRadioReceiverObject* translate( DtPortalRadioReceiverObject* destination,
95  const DtRadioReceiverRepository& source, const DtReflectedRadioReceiver& refObj );
96 
98  virtual DtRadioReceiverRepository* translate( DtRadioReceiverRepository* destination,
100 
101  };
102 
103  }
104 }
ObjectType
Definition: disBroker/disBroker/globalIdMapper.h:65
Provides container to hold pointers to Protocol/Portal objects.
Definition: brokerObject.h:24
virtual DtObjectPublisher * instantiateDisPublisher(const T_PortalReflectedObject *refObj, const DtEntityIdentifier &name)
Instantiates the publisher for the given reflected object.
A simple template class to hold different types of State Repositories.
Definition: pObjectPublisher.h:68
Base class for all embedded system translators.
Definition: disBroker/disBroker/embeddedSystemTranslator.h:44
virtual DtEntityIdentifier mapIdentifier(const T_PortalReflectedObject *refObj, const DtString &identifier)
Maps the reflected object&#39;s global or entity identifier to a DIS id.
DtPortalReflectedObjectTemplate< DtPortalRadioReceiverObject > DtPortalReflectedRadioReceiverObject
A Radio Receiver Object template instance.
Definition: pReflectedObjectTypes.h:127
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
#define Dt_DEF_TRANSLATOR_NAME(strname)
Definition: translator.h:16
Portal Radio Receiver Object class.
Definition: pRadioReceiverObject.h:19
#define DT_DLL_DISBROKER
Definition: brokers/disBroker/disBroker/dllExport.h:20
Provides Radio Receiver object translation between DIS and the VR-Exchange Portal.
Definition: disBroker/disBroker/radioReceiverTranslator.h:47

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)