VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
disBroker/disBroker/designatorTranslator.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/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 void deleteDisPublisher( DtBrokerObject* brokerObject );
68 
70  virtual DtPortalDesignatorObject* translate( DtPortalDesignatorObject* destination,
71  const DtDesignatorRepository& source, const DtReflectedDesignator& refObj );
72 
74  virtual DtDesignatorRepository* translate( DtDesignatorRepository* destination,
75  const DtPortalDesignatorObject& source, const DtPortalReflectedDesignatorObject& refObj );
76 
77  };
78 
79  }
80 }

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)