VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tenaBroker/tenaBroker/iffTrans.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 <tenaBroker/tenaTrans.h>
13 #include <vl/iffStateRepository.h>
15 #include <vlTena/iffPublisher.h>
16 
17 #define IFF_TEMPLATE_ARGS \
18  DtPortalIffObject, DtPortalReflectedIffObject, \
19  DtReflectedIff, DtReflectedIffList, \
20  DtIffStateRepository, DtIffPublisher
21 
22 namespace MAKVrExchange
23 {
24 
25  namespace DtTenaBroker
26  {
27 
31  : public DtTenaObjectTranslator<IFF_TEMPLATE_ARGS>
32  {
33  public:
34 
36  Dt_DEF_TRANSLATOR_NAME( "IFF" );
37 
40 
42  virtual ~DtIffObjectTranslator();
43 
44  protected:
45 
48  virtual bool isTenaPublishable( const DtBrokerObject* brokerObj,
49  const DtPortalReflectedIffObject* refObj );
50 
52  virtual DtString tenaObjectName( const DtPortalReflectedIffObject* refObj ) const;
53 
56  virtual bool performTenaGlobalIdMapping( const DtObjectPublisher* publisher,
57  const DtPortalReflectedIffObject& refObj,
58  DtGlobalIdMapper::ObjectType type /* = DtGlobalIdMapper::EntityType */,
59  int systemId /* = DtGlobalIdMapper::NoSystemId */,
60  int beamId /* = DtGlobalIdMapper::NoBeamId */ );
61 
64  virtual DtString portalObjectName( const DtReflectedIff* refObj ) const;
65 
67  virtual DtPortalIffObject* translate( DtPortalIffObject* destination,
68  const DtIffStateRepository& source, const DtReflectedIff& refObj );
69 
71  virtual DtIffStateRepository* translate( DtIffStateRepository* destination,
72  const DtPortalIffObject& source, const DtPortalReflectedIffObject& refObj );
73 
74  };
75 
76  }
77 }

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)