From: tho Date: Mon, 21 Mar 2011 16:14:24 +0000 (+0000) Subject: PPI: made EventDescriptor::enabled() const X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=7fc5281759449683f7626bce9f6063bcd4d080a0;hp=394ced7000128fef7e753caea1deda8d55dec8e2;p=senf.git PPI: made EventDescriptor::enabled() const git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1773 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/PPI/EventManager.cc b/senf/PPI/EventManager.cc index c07f368..59cf31f 100644 --- a/senf/PPI/EventManager.cc +++ b/senf/PPI/EventManager.cc @@ -57,7 +57,9 @@ prefix_ void senf::ppi::EventManager::destroyEvent(EventDescriptor & event) std::find_if(registrations_.begin(), registrations_.end(), l::bind(&detail::EventBindingBase::descriptor_,_1) == &event) == registrations_.end(), - "Internal failure: registrations still active while destroying event ??"); + "Internal failure: registrations still active while destroying event." + "Maybe you've put the SENF_PPI_MODULE macro in a superclass instead of" + "in the subclass?"); } //-///////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/senf/PPI/Events.cci b/senf/PPI/Events.cci index b3b5d9b..6e44459 100644 --- a/senf/PPI/Events.cci +++ b/senf/PPI/Events.cci @@ -32,6 +32,7 @@ // senf::ppi::EventDescriptor prefix_ bool senf::ppi::EventDescriptor::enabled() + const { return enabled_; } diff --git a/senf/PPI/Events.hh b/senf/PPI/Events.hh index a63beac..73de626 100644 --- a/senf/PPI/Events.hh +++ b/senf/PPI/Events.hh @@ -71,7 +71,7 @@ namespace ppi { public: virtual ~EventDescriptor(); - bool enabled(); ///< Check, whether the event is currently enabled + bool enabled() const; ///< Check, whether the event is currently enabled void enabled(bool v); ///< Enable or disable the event protected: