25 change_handler_(false),
31 bool handler_attached =
false;
37 std::vector<observer*>::const_iterator it = std::find(
observers_.begin(),
observers_.end(), obs);
39 handler_attached =
false;
43 handler_attached =
true;
53 return handler_attached;
57 bool handler_detached =
false;
63 handler_detached =
false;
67 handler_detached =
true;
72 return handler_detached;
79 for (std::vector<observer*>::const_iterator it =
observers_.begin();
81 (*it)->handle_generic_event(
name_);
generic_event(const std::string &name)
std::vector< observer * > observers_
virtual bool attach_handler(observer *obs)
virtual bool detach_handler(observer *obs)
virtual void notify_observers()
Handling of system events.