X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fdispatcher.hh;fp=src%2Fmoof%2Fdispatcher.hh;h=f2613e8fdeb2d11aba27b51c7758ef3e6fbdd989;hp=a4207c42170bffd68ee1a48713e857b9430c911b;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/moof/dispatcher.hh b/src/moof/dispatcher.hh index a4207c4..f2613e8 100644 --- a/src/moof/dispatcher.hh +++ b/src/moof/dispatcher.hh @@ -1,13 +1,11 @@ -/*] 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_ @@ -31,7 +29,6 @@ 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 dispatcher_; - mutable unsigned id_; + mutable unsigned id_; }; typedef boost::function 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);