VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
genericTrans.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "rprTrans.h"
13 
15 
16 #include <vl/reflectedGenericObjectList.h>
17 #include <vl/genericObjectPublisher.h>
18 
19 #include <map>
20 
21 class DtReflectedGenericObject;
22 class DtGenericObjectPublisher;
23 
24 #define GENERIC_TEMPLATE_ARGS \
25  DtPortalGenericObject, DtPortalReflectedGenericObject, \
26  DtReflectedGenericObject, DtReflectedGenericObjectList, \
27  DtStateRepository, DtGenericObjectPublisher
28 
29 namespace MAKVrExchange
30 {
31 
32  namespace DtRprBroker
33  {
34 
37  template <>
38  DT_DLL_RPRBROKER void
40 
43  template <>
44  DT_DLL_RPRBROKER DtGenericObjectPublisher*
46  const DtPortalReflectedGenericObject* refObj, const DtString& name );
47 
48 
56  : public DtRprObjectTranslator<GENERIC_TEMPLATE_ARGS>
57  {
58  public:
59 
61  DtGenericTranslator( DtBroker* broker, const DtString& objClassName );
62 
64  virtual ~DtGenericTranslator();
65 
101  virtual DtPortalGenericObject* translate(
102  DtPortalGenericObject* destination,
103  const DtStateRepository& source,
104  const DtReflectedGenericObject& refObj );
105 
138  virtual DtStateRepository* translate(
139  DtStateRepository* destination,
140  const DtPortalGenericObject& source,
141  const DtPortalReflectedGenericObject& refObj );
142 
143  protected:
144 
147  virtual void initializeRprCallbacks();
148 
151  virtual void initializePortalCallbacks();
152 
155  virtual void createPortalPublisher( DtBrokerObject* brokerObject );
156 
157  protected:
158 
160 
161  };
162 
163  }
164 }

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)