VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pObjectPublisher.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 
12 #include <portal/pConnection.h>
13 #include <portal/pGenericObject.h>
14 #include <portal/pControlMessage.h>
15 
16 namespace MAKVrExchange
17 {
18 
23  {
24  public:
25 
28 
30  virtual ~DtPortalObjectPublisher();
31 
33  virtual void forceUpdate();
34 
36  virtual void tick() = 0;
37 
40 
41  virtual DtPortalObject* baseSr();
42  virtual const DtPortalObject* baseSr() const;
43 
45 
48  virtual void processNewBrokerStarted( const DtBrokerStartedMessage& msg );
49 
50  protected:
51 
54  static void newBrokerStartedCb( const DtBrokerStartedMessage& msg, void* usr );
55 
56  protected:
57 
61 
62  };
63 
64 
67  template<typename T_PortalObject>
69  {
70  public:
71 
74 
77 
80 
81  virtual T_PortalObject* sr();
82  virtual const T_PortalObject* sr() const;
83 
85 
87  virtual void tick();
88 
89  protected:
90 
92  static void filterObjectCallback( const DtFilterObjectMessage& object, void* userData );
93 
94  protected:
95 
98  T_PortalObject myAsSeenByStateRepository;
99 
101  T_PortalObject* myStateRepository;
102 
103  };
104 
105 }
106 
107 #define _pObjectPublisher_INL_
108 #include <portal/pObjectPublisher.inl>
109 #undef _pObjectPublisher_INL_

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)