]> Dogcows Code - chaz/yoink/blobdiff - src/moof/dispatcher.hh
pch support
[chaz/yoink] / src / moof / dispatcher.hh
index a4207c42170bffd68ee1a48713e857b9430c911b..7a1a08109a65ec441ea42127fe54ef2572e7a505 100644 (file)
@@ -1,22 +1,15 @@
 
-/*]  Copyright (c) 2009-2010, Charles McGarvey  [**************************
+/*]  Copyright (c) 2009-2011, Charles McGarvey  [*****************************
 **]  All rights reserved.
 *
-* vi:ts=4 sw=4 tw=75
-*
 * Distributable under the terms and conditions of the 2-clause BSD license;
 * see the file COPYING for a complete text of the license.
 *
-**************************************************************************/
+*****************************************************************************/
 
 #ifndef _MOOF_DISPATCH_HH_
 #define _MOOF_DISPATCH_HH_
 
-/**
- * \file dispatcher.hh
- * Classes that deal with message dispatching.
- */
-
 #include <string>
 
 #include <boost/bind.hpp>
 #include <boost/weak_ptr.hpp>
 
 
+/**
+ * \file dispatcher.hh
+ * Classes that deal with message dispatching.
+ */
+
 namespace moof {
 
 
 /**
  * Dispatcher of messages to interested parties.
  */
-
 class dispatcher
 {
        class impl;
@@ -39,7 +36,6 @@ class dispatcher
 
        void remove_target(unsigned id);
 
-
 public:
 
        class handle
@@ -84,17 +80,16 @@ public:
        private:
 
                boost::weak_ptr<impl>   dispatcher_;
-               mutable unsigned                id_;
+               mutable unsigned        id_;
        };
 
        typedef boost::function<void(void)> function;
 
-
        dispatcher();
 
        handle add_target(const std::string& event, const function& callback);
        handle add_target(const std::string& event, const function& callback,
-                                          handle handle);
+                       handle handle);
 
        void dispatch(const std::string& event);
 
This page took 0.019387 seconds and 4 git commands to generate.