23#include <interfaces/TestInterface.h>
24#include <plugins/examples/basics/blackboard_thread.h>
39:
Thread(
"ExampleBlackBoardThread",
Thread::OPMODE_WAITFORWAKEUP),
42 this->reader = reader;
76 e.
append(
"Opening test interface for writing failed");
virtual void finalize()
Finalize the thread.
virtual void loop()
Thread loop.
ExampleBlackBoardThread(bool reader)
Constructor.
virtual ~ExampleBlackBoardThread()
Destructor.
virtual void init()
Initialize thread.
BlackBoard * blackboard
This is the BlackBoard instance you can use to interact with the BlackBoard.
virtual Interface * open_for_reading(const char *interface_type, const char *identifier, const char *owner=NULL)=0
Open interface for reading.
virtual Interface * open_for_writing(const char *interface_type, const char *identifier, const char *owner=NULL)=0
Open interface for writing.
virtual void close(Interface *interface)=0
Close interface.
Thread aspect to use blocked timing.
Base class for exceptions in Fawkes.
void append(const char *format,...) noexcept
Append messages to the message list.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
virtual void log_error(const char *component, const char *format,...)=0
Log error message.
Logger * logger
This is the Logger member used to access the logger.
TestInterface Fawkes BlackBoard Interface.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.
Fawkes library namespace.