24 #include <blackboard/interface_observer.h> 25 #include <interface/interface.h> 75 __bbio_observed_create.clear();
76 __bbio_observed_destroy.clear();
122 const char *id_pattern)
throw()
124 __bbio_observed_create.
lock();
125 __bbio_observed_create[type_pattern].push_back(id_pattern);
126 __bbio_observed_create[type_pattern].sort();
127 __bbio_observed_create[type_pattern].unique();
128 __bbio_observed_create.
unlock();
142 const char *id_pattern)
throw()
144 __bbio_observed_destroy.
lock();
145 __bbio_observed_destroy[type_pattern].push_back(id_pattern);
146 __bbio_observed_destroy[type_pattern].sort();
147 __bbio_observed_destroy[type_pattern].unique();
148 __bbio_observed_destroy.
unlock();
158 return &__bbio_observed_create;
168 return &__bbio_observed_destroy;
ObservedInterfaceLockMap * bbio_get_observed_destroy()
Get interface destriction type watch list.
void lock() const
Lock list.
virtual void bb_interface_destroyed(const char *type, const char *id)
BlackBoard interface destroyed notification.
Fawkes library namespace.
BlackBoardInterfaceObserver()
Empty constructor.
void bbio_add_observed_destroy(const char *type_pattern, const char *id_pattern="*")
Add interface destruction type to watch list.
void bbio_add_observed_create(const char *type_pattern, const char *id_pattern="*")
Add interface creation type to watch list.
void unlock() const
Unlock list.
virtual ~BlackBoardInterfaceObserver()
Destructor.
ObservedInterfaceLockMap * bbio_get_observed_create()
Get interface creation type watch list.
virtual void bb_interface_created(const char *type, const char *id)
BlackBoard interface created notification.