23 #ifndef _BLACKBOARD_OWNERSHIP_H_
24 #define _BLACKBOARD_OWNERSHIP_H_
26 #include <blackboard/blackboard.h>
37 open_for_reading(
const char *interface_type,
const char *identifier,
const char *owner = NULL);
39 open_for_writing(
const char *interface_type,
const char *identifier,
const char *owner = NULL);
44 virtual bool is_alive()
const noexcept;
48 const char *id_pattern =
"*",
49 const char *owner = NULL);
BlackBoard interface listener.
BlackBoard interface observer.
BlackBoard that traces interface ownership.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier, const char *owner=NULL)
Open interface for writing.
virtual void close(Interface *interface)
Close interface.
virtual void register_observer(BlackBoardInterfaceObserver *observer)
Register BB interface observer.
virtual void unregister_observer(BlackBoardInterfaceObserver *observer)
Unregister BB interface observer.
virtual void update_listener(BlackBoardInterfaceListener *listener, ListenerRegisterFlag flag=BBIL_FLAG_ALL)
Update BB event listener.
virtual InterfaceInfoList * list_all()
Get list of all currently existing interfaces.
virtual ~BlackBoardWithOwnership()
Destructor.
virtual void unregister_listener(BlackBoardInterfaceListener *listener)
Unregister BB interface listener.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier, const char *owner=NULL)
Open interface for reading.
virtual bool is_alive() const noexcept
Check if the BlackBoard is still alive.
BlackBoardWithOwnership(BlackBoard *parent, const char *owner)
Constructor.
virtual void register_listener(BlackBoardInterfaceListener *listener, ListenerRegisterFlag flag=BBIL_FLAG_ALL)
Register BB event listener.
virtual bool try_aliveness_restore() noexcept
Try to restore the aliveness of the BlackBoard instance.
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.
virtual InterfaceInfoList * list(const char *type_pattern, const char *id_pattern)
Get list of interfaces matching type and ID patterns.
The BlackBoard abstract class.
ListenerRegisterFlag
Flags to constrain listener registration/updates.
@ BBIL_FLAG_ALL
consider all events
Interface information list.
Base class for all Fawkes BlackBoard interfaces.
Fawkes library namespace.