VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 {
27  {
28  public:
29 
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 
74 
77 
78  private:
79 
82 
85  };
86 }

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)