23 #ifndef __BLACKBOARD_OWNERSHIP_H_ 24 #define __BLACKBOARD_OWNERSHIP_H_ 26 #include <blackboard/blackboard.h> 41 const char *identifier,
42 const char *owner = NULL);
44 const char *identifier,
45 const char *owner = NULL);
50 const char *id_pattern);
51 virtual bool is_alive()
const throw();
54 virtual std::list<Interface *>
56 const char *id_pattern =
"*",
57 const char *owner = NULL);
virtual ~BlackBoardWithOwnership()
Destructor.
ListenerRegisterFlag
Flags to constrain listener registration/updates.
virtual std::list< Interface * > open_multiple_for_reading(const char *type_pattern, const char *id_pattern="*", const char *owner=NULL)
Open multiple interfaces for reading.
Fawkes library namespace.
virtual void close(Interface *interface)
Close interface.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier, const char *owner=NULL)
Open interface for reading.
Base class for all Fawkes BlackBoard interfaces.
virtual void unregister_listener(BlackBoardInterfaceListener *listener)
Unregister BB interface listener.
Interface information list.
virtual bool is_alive() const
Check if the BlackBoard is still alive.
BlackBoard that traces interface ownership.
virtual void unregister_observer(BlackBoardInterfaceObserver *observer)
Unregister BB interface observer.
BlackBoard interface observer.
BlackBoardWithOwnership(BlackBoard *parent, const char *owner)
Constructor.
virtual InterfaceInfoList * list_all()
Get list of all currently existing interfaces.
virtual bool try_aliveness_restore()
Try to restore the aliveness of the BlackBoard instance.
virtual void register_observer(BlackBoardInterfaceObserver *observer)
Register BB interface observer.
virtual void update_listener(BlackBoardInterfaceListener *listener, ListenerRegisterFlag flag=BBIL_FLAG_ALL)
Update BB event listener.
The BlackBoard abstract class.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier, const char *owner=NULL)
Open interface for writing.
virtual void register_listener(BlackBoardInterfaceListener *listener, ListenerRegisterFlag flag=BBIL_FLAG_ALL)
Register BB event listener.
virtual InterfaceInfoList * list(const char *type_pattern, const char *id_pattern)
Get list of interfaces matching type and ID patterns.
BlackBoard interface listener.