VR-Forces Development_Version 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/signalslib.h>
16 #include <boost/signals/connection.hpp>
17 
18 namespace makVrv
19 {
25  {
26  public:
27 
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 
72 
75 
76  private:
77 
80 
83  };
84 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)