VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rprBroker/rprBroker/linearObjectTranslator.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 
13 #include <portal/pLinearObject.h>
14 #include <vl/linearObjectPublisher.h>
15 #include <vl/reflectedLinearObject.h>
16 #include <vl/reflectedLinearObjectList.h>
17 
18 #define LINEAROBJ_TEMPLATE_ARGS \
19  DtPortalLinearObject, DtPortalReflectedLinearObject, \
20  DtReflectedLinearObject, DtReflectedLinearObjectList, \
21  DtLinearObjectRepository, DtLinearObjectPublisher
22 
23 namespace MAKVrExchange
24 {
25 
26  namespace DtRprBroker
27  {
28 
29  // Template specialization to avoid compilation errors
30  // resulting from linear object publisher CTOR.
31  template <>
32  DtLinearObjectPublisher*
34  const DtPortalReflectedLinearObject* refObj, const DtString& name );
35 
37  : public DtRprObjectTranslator<LINEAROBJ_TEMPLATE_ARGS>
38  {
39  public:
40 
42  Dt_DEF_TRANSLATOR_NAME( "Linear Object" );
43 
46 
48  virtual ~DtLinearObjectTranslator();
49 
51  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
52  const DtPortalLinearObject& sr );
53 
56  const DtLinearObjectRepository& src, const DtReflectedLinearObject& refObj );
57 
58  // Translate segment data from PDU to Portal.
60  const DtLinearSegmentRecord& src );
61 
63  virtual DtLinearObjectRepository* translate( DtLinearObjectRepository* dest,
64  const DtPortalLinearObject& src, const DtPortalReflectedLinearObject& refObj );
65 
66  // Translate segment data from Portal to PDU.
67  DtLinearSegmentRecord* translate( DtLinearSegmentRecord* dest,
68  const DtLinearSegmentData& src );
69 
70  private:
71 
74 
77 
78  };
79 
80  }
81 }

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)