VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disBroker/disBroker/designatorTranslator.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/reflectedDesignatorList.h>
14 #include <vl/designatorPublisher.h>
15 
16 class DtReflectedDesignator;
17 class DtDesignatorRepository;
18 
19 #define DESIGNATOR_TEMPLATE_ARGS \
20  DtPortalDesignatorObject, DtPortalReflectedDesignatorObject, \
21  DtReflectedDesignator, DtReflectedDesignatorList, \
22  DtDesignatorRepository, DtDesignatorPublisher
23 
24 namespace MAKVrExchange
25 {
26 
27  namespace DtDisBroker
28  {
29 
33  : public DtEmbeddedSystemTranslator<DESIGNATOR_TEMPLATE_ARGS>
34  {
35  public:
36 
38  Dt_DEF_TRANSLATOR_NAME( "Designator" );
39 
41  DtDesignatorTranslator( DtBroker* disBroker );
42 
44  virtual ~DtDesignatorTranslator();
45 
46  protected:
47 
50  virtual bool isDisPublishable( DtBrokerObject* brokerObj,
51  const DtPortalReflectedDesignatorObject* refObj );
52 
55  virtual bool performDisGlobalIdMapping( const DtObjectPublisher* publisher,
57  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
58  int systemId /* = DtGlobalIdMapper::NoSystemId */,
59  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
60 
63  virtual DtString portalObjectName( const DtReflectedDesignator* refObj ) const;
64 
67  virtual bool performPortalGlobalIdMapping(
68  const DtPortalDesignatorObjectPublisher* publisher,
69  const DtReflectedDesignator& refObj,
70  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
71  int systemId /* = DtGlobalIdMapper::NoSystemId */,
72  int beamId /* = DtGlobalIdMapper::NoBeamId */);
73 
76  virtual void deleteDisPublisher( DtBrokerObject* brokerObject );
77 
79  virtual DtPortalDesignatorObject* translate( DtPortalDesignatorObject* destination,
80  const DtDesignatorRepository& source, const DtReflectedDesignator& refObj );
81 
83  virtual DtDesignatorRepository* translate( DtDesignatorRepository* destination,
84  const DtPortalDesignatorObject& source, const DtPortalReflectedDesignatorObject& refObj );
85 
86  };
87 
88  }
89 }
ObjectType
Definition: disBroker/disBroker/globalIdMapper.h:65
Provides container to hold pointers to Protocol/Portal objects.
Definition: brokerObject.h:24
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
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
Portal Designator Object class.
Definition: pDesignatorObject.h:19
#define Dt_DEF_TRANSLATOR_NAME(strname)
Definition: translator.h:16
Provides Designator object translation between DIS and the VR-Exchange Portal.
Definition: disBroker/disBroker/designatorTranslator.h:32
#define DT_DLL_DISBROKER
Definition: brokers/disBroker/disBroker/dllExport.h:20

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)