///@}
///////////////////////////////////////////////////////////////////////////
- std::string const & name() const;
- bool enabled() const;
- unsigned runCount() const;
- char const * type() const;
- std::string info() const;
+ std::string const & name() const; ///< Get event name
+ bool enabled() const; ///< \c true, if event is enabled, \c false otherwise
+ unsigned runCount() const; ///< Number of times, event was fired
+ char const * type() const; ///< Event type code
+ std::string info() const; ///< Additional event information
protected:
void countRun();
disable();
}
-prefix_ bool senf::scheduler::FdEvent::enabled()
-{
- return detail::FdSetBase::linked();
-}
-
prefix_ senf::scheduler::FdEvent & senf::scheduler::FdEvent::action(Callback const & cb)
{
cb_ = cb;
void disable(); ///< Disable event
void enable(); ///< Enable event
- bool enabled(); ///< \c true if event enabled, \c false otherwise
FdEvent & action(Callback const & cb); ///< Change event callback
senf::scheduler::detail::SignalDispatcher::instance().add(*this);
}
-prefix_ bool senf::scheduler::SignalEvent::enabled()
- const
-{
- return detail::SignalSetBase::linked();
-}
-
prefix_ void senf::scheduler::SignalEvent::action(Callback const & cb)
{
cb_ = cb;
void disable(); ///< Enable signal event registration
void enable(); ///< Disable the signal event registration
- bool enabled() const; ///< \c true, if event enabled, \c false otherwise
+
void action(Callback const & cb); ///< Change signal event callback
private:
senf::scheduler::detail::TimerDispatcher::instance().remove(*this);
}
-prefix_ bool senf::scheduler::TimerEvent::enabled()
-{
- return detail::TimerSetBase::linked();
-}
-
prefix_ void senf::scheduler::TimerEvent::action(Callback const & cb)
{
cb_ = cb;
void disable(); ///< Disable timer
void enable(); ///< Enable timer
- bool enabled(); ///< \c true, if timer enabled, \c false otherwise
void action(Callback const & cb); ///< Change timer event callback
void timeout(ClockService::clock_type timeout, bool initiallyEnabled=true);