VR-Exchange 2.1 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
portal
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
:
26
DtPortalObjectPublisher
(
DtPortalConnection
*conn);
27
28
virtual
~
DtPortalObjectPublisher
();
30
virtual
void
forceUpdate();
31
32
virtual
void
tick() = 0;
33
36
virtual
void
processNewBrokerStarted(
const
DtBrokerStartedMessage
& msg);
37
38
protected
:
39
42
static
void
newBrokerStartedCb(
const
DtBrokerStartedMessage
& msg,
void
*usr);
43
44
protected
:
45
46
bool
myForceUpdateFlag
;
47
DtPortalConnection
*
myConn
;
48
};
49
51
template
<
typename
T_PortalObject>
52
class
DtPortalObjectPublisherTemplate
:
public
DtPortalObjectPublisher
53
{
54
55
public
:
56
DtPortalObjectPublisherTemplate
(
DtPortalConnection
*conn);
57
virtual
~DtPortalObjectPublisherTemplate
();
58
59
virtual
T_PortalObject *
sr
();
60
virtual
const
T_PortalObject *
sr
()
const
;
61
62
virtual
void
tick
();
63
64
protected
:
65
67
static
void
filterObjectCallback
(
const
DtFilterObjectMessage
&
object
,
void
* userData );
68
69
71
T_PortalObject
myStateRepository
;
72
75
T_PortalObject
myAsSeenByStateRepository
;
76
77
};
78
}
79
80
#define pObjectPublisher_INL_
81
#include <portal/pObjectPublisher.inl>
82
#undef pObjectPublisher_INL_
83
84
#endif //end #ifndef pObjectPublisher_H_
Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (
www.mak.com
)