24 #include <blackboard/interface_observer.h>
25 #include <interface/interface.h>
76 bbio_observed_create_.clear();
77 bbio_observed_destroy_.clear();
120 const char *id_pattern)
throw()
122 bbio_observed_create_.lock();
123 bbio_observed_create_[type_pattern].push_back(id_pattern);
124 bbio_observed_create_[type_pattern].sort();
125 bbio_observed_create_[type_pattern].unique();
126 bbio_observed_create_.unlock();
139 const char *id_pattern)
throw()
141 bbio_observed_destroy_.lock();
142 bbio_observed_destroy_[type_pattern].push_back(id_pattern);
143 bbio_observed_destroy_[type_pattern].sort();
144 bbio_observed_destroy_[type_pattern].unique();
145 bbio_observed_destroy_.unlock();
154 return &bbio_observed_create_;
163 return &bbio_observed_destroy_;
ObservedInterfaceLockMap * bbio_get_observed_create()
Get interface creation type watch list.
ObservedInterfaceLockMap * bbio_get_observed_destroy()
Get interface destriction type watch list.
void bbio_add_observed_create(const char *type_pattern, const char *id_pattern="*")
Add interface creation type to watch list.
BlackBoardInterfaceObserver()
Empty constructor.
void bbio_add_observed_destroy(const char *type_pattern, const char *id_pattern="*")
Add interface destruction type to watch list.
virtual void bb_interface_created(const char *type, const char *id)
BlackBoard interface created notification.
virtual void bb_interface_destroyed(const char *type, const char *id)
BlackBoard interface destroyed notification.
virtual ~BlackBoardInterfaceObserver()
Destructor.
Fawkes library namespace.