VR-Exchange 2.2 API Documentation
pObjectPublisher.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef pObjectPublisher_H_
7 #define pObjectPublisher_H_
8 
12 
13 
14 #include <portal/pConnection.h>
15 #include <portal/pGenericObject.h>
16 #include <portal/pControlMessage.h>
17 
18 namespace MAKVrExchange {
19 
23 class DT_DLL_LIBPORTAL DtPortalObjectPublisher
24 {
25 public:
27 
28  virtual ~DtPortalObjectPublisher();
30  virtual void forceUpdate();
31 
32  virtual void tick() = 0;
33 
34  virtual DtPortalObject *baseSr();
35  virtual const DtPortalObject *baseSr() const;
38  virtual void processNewBrokerStarted(const DtBrokerStartedMessage& msg);
39 
40 protected:
41 
44  static void newBrokerStartedCb(const DtBrokerStartedMessage& msg, void *usr);
45 
46 protected:
48 
51 };
52 
54 template<typename T_PortalObject>
56 {
57 
58 public:
61 
62  virtual T_PortalObject *sr();
63  virtual const T_PortalObject *sr() const;
64 
65  virtual void tick();
66 
67 protected:
68 
70  static void filterObjectCallback( const DtFilterObjectMessage& object, void* userData );
71 
72 
74  T_PortalObject* myStateRepository;
75 
78  T_PortalObject myAsSeenByStateRepository;
79 
80 };
81 }
82 
83 #define pObjectPublisher_INL_
84 #include <portal/pObjectPublisher.inl>
85 #undef pObjectPublisher_INL_
86 
87 #endif //end #ifndef pObjectPublisher_H_

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)