VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtEventView.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtEventView.h,v $ $Revision: 1.10 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtEventView_H_
14
#define DtEventView_H_
15
16
#include <
vrvCore/vrvCore.h
>
17
#include <
vrvCore/DtDe.h
>
18
#include <
vrvCore/DtSimEventEntry.h
>
19
#include <
vrvCore/DtDataBank.h
>
20
21
#include <boost/bind.hpp>
22
23
namespace
makVrv
24
{
25
class
DtSimEntry;
26
29
class
DT_DLL_VRVCORE
DtBaseEventView
30
{
31
32
public
:
33
35
virtual
~
DtBaseEventView
();
36
37
protected
:
38
40
DtBaseEventView
();
41
42
};
43
44
45
template
<
class
EventType>
46
class
DtEventSignaler
:
public
DtVirtualBaseClass
47
{
48
public
:
49
52
static
DtEventSignaler
&
instance
(
DtSimData
&);
53
56
static
void
release
(
DtSimData
&);
57
59
DtEventSignaler
(
DtSimData
&);
60
61
~DtEventSignaler
();
62
64
boost::signal<void (const EventType&)>
signal_eventTriggered
;
65
66
protected
:
67
70
void
onEventTriggered
(
const
DtSimEventEntry
& entry);
71
73
void
connectToEventTriggeredSignal
();
74
76
void
disconnectFromEventTriggeredSignal
();
77
78
protected
:
79
80
DtSimData
&
mySimData
;
81
unsigned
int
myReferenceCount
;
82
};
83
86
template
<
class
EventType>
87
class
DtEventView
:
public
DtBaseEventView
88
{
89
90
public
:
91
93
DtEventView
(
DtDe
& de);
94
96
virtual
~DtEventView
();
97
99
boost::signal<void (const EventType&)>
signal_eventTriggered
;
100
101
protected
:
102
105
void
onEventTriggered
(
const
EventType& entry);
106
108
void
connectToEventTriggeredSignal
();
109
111
void
disconnectFromEventTriggeredSignal
();
112
113
DtDe
&
myDe
;
114
};
115
116
}
117
118
#define DtEventView_INL_
119
#include <vrvCore/DtEventView.inl>
120
#undef DtEventView_INL_
121
122
#endif
123
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)