VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvUtil
DtSignalConnectionManager.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtSignalHolderBase.h,v $ $Revision: 1.11 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvUtil/vrvUtil.h
>
16
#include <
vrvUtil/signalslib.h
>
17
#include <boost/signals/connection.hpp>
18
#include <vector>
19
20
namespace
makVrv
21
{
26
class
DT_DLL_VRVUTIL
DtSignalConnectionManager
27
{
28
public
:
29
31
DtSignalConnectionManager
();
32
34
virtual
~
DtSignalConnectionManager
();
35
37
void
manageConnection(
const
boost::signalslib::connection& conn);
38
40
inline
DtSignalConnectionManager
& operator+=(
41
const
boost::signalslib::connection& conn)
42
{
43
myConnections.push_back(conn);
44
return
*
this
;
45
}
46
48
int
numberOfConnections()
const
;
49
51
void
disconnectSignals();
52
55
bool
blockConnections(
bool
blocked);
56
60
bool
blockConnection(
int
index,
bool
blocked );
61
63
bool
connectionsBlocked()
const
;
64
66
bool
connectionBlocked(
int
index)
const
;
67
68
protected
:
70
typedef
std::vector<boost::signalslib::connection>
Connections
;
71
73
Connections
myConnections
;
74
75
bool
myConnectionsBlocked
;
76
bool
myIndiviualConnectionedBlocked
;
77
78
private
:
79
81
DtSignalConnectionManager
& operator=(
DtSignalConnectionManager
asn);
82
84
DtSignalConnectionManager
(
const
DtSignalConnectionManager
& copy);
85
};
86
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)