VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
noRelAggregateTranslator.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 
14 #include <vl/reflectedAggregateList.h>
15 
16 #define AGGREGATE_TEMPLATE_ARGS \
17  DtPortalAggregate, DtPortalReflectedAggregate, \
18  DtReflectedAggregate, DtReflectedAggregateList, \
19  DtAggregateStateRepository, DtNoRelAggregatePublisher
20 
21 class DtAggregateStateRepository;
22 
23 namespace MAKVrExchange
24 {
25 
26  namespace DtDisBroker
27  {
28 
29  template <>
30  DT_DLL_DISBROKER DtEntityIdentifier
32  const DtPortalReflectedAggregate* refObj, const DtString& identifier );
33 
36  template <>
37  DT_DLL_DISBROKER DtObjectPublisher*
39  const DtPortalReflectedAggregate* refObj, const DtEntityIdentifier& name );
40 
41 
45  : public DtDisObjectTranslator<AGGREGATE_TEMPLATE_ARGS>
46  {
47  public:
48 
50  Dt_DEF_TRANSLATOR_NAME( "Aggregate (No-RL)" );
51 
54 
56  virtual ~DtNoRelAggregateTranslator();
57 
58  protected:
59 
62  virtual bool isDisPublishable( const DtBrokerObject* brokerObject,
63  const DtPortalReflectedAggregate* refObj );
64 
66  virtual DtString disObjectName( const DtPortalReflectedAggregate* refObj ) const;
67 
70  virtual void createDisPublisher( DtBrokerObject* brokerObject );
71 
74  virtual DtString portalObjectName( const DtReflectedAggregate* refObj ) const;
75 
78  virtual void updateDisBrokerObject( DtBrokerObject* brokerObj,
79  const DtAggregateStateRepository& sr );
80 
83  virtual void updatePortalBrokerObject( DtBrokerObject* brokerObj,
84  const DtPortalAggregate& sr );
85 
87  virtual void updateFilteredState( DtBrokerObject* brokerObj,
88  DtPortalAggregatePublisher* publisher, DtReflectedAggregate* refObj );
89 
91  virtual DtPortalAggregate* translate( DtPortalAggregate* destination,
92  const DtAggregateStateRepository& source,
93  const DtReflectedAggregate& refObj );
94 
96  virtual DtAggregateStateRepository* translate(
97  DtAggregateStateRepository* destination,
98  const DtPortalAggregate& source,
99  const DtPortalReflectedAggregate& refObj );
100 
102  virtual void syncPortalDeadReckonedValues( DtPortalAggregate& destination,
103  const DtAggregateStateRepository& source );
104 
106  virtual void syncDisDeadReckonedValues( DtAggregateStateRepository& destination,
107  const DtPortalAggregate& source );
108 
109  };
110 
111  }
112 }

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)