VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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/signalslib.h
>
16
#include <boost/signals/connection.hpp>
17
18
namespace
makVrv
19
{
24
class
DT_DLL_VRVUTIL
DtSignalConnectionManager
25
{
26
public
:
27
29
DtSignalConnectionManager
();
30
32
virtual
~
DtSignalConnectionManager
();
33
35
void
manageConnection(
const
boost::signalslib::connection& conn);
36
38
inline
DtSignalConnectionManager
& operator+=(
39
const
boost::signalslib::connection& conn)
40
{
41
myConnections.push_back(conn);
42
return
*
this
;
43
}
44
46
int
numberOfConnections()
const
;
47
49
void
disconnectSignals();
50
53
bool
blockConnections(
bool
blocked);
54
58
bool
blockConnection(
int
index,
bool
blocked );
59
61
bool
connectionsBlocked()
const
;
62
64
bool
connectionBlocked(
int
index)
const
;
65
66
protected
:
68
typedef
std::vector<boost::signalslib::connection>
Connections
;
69
71
Connections
myConnections
;
72
73
bool
myConnectionsBlocked
;
74
bool
myIndiviualConnectionedBlocked
;
75
76
private
:
77
79
DtSignalConnectionManager
& operator=(
DtSignalConnectionManager
asn);
80
82
DtSignalConnectionManager
(
const
DtSignalConnectionManager
& copy);
83
};
84
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)