Fawkes API  Fawkes Development Version
protoboard::AbstractProtobufSender Class Referenceabstract

Abstract superclass for sending out ProtoBuf messages. More...

#include <blackboard_manager.h>

Inheritance diagram for protoboard::AbstractProtobufSender:

Classes

struct  handle_messages
 Functor that iterates over all message types that should be handled on a given interface type and calls the approate handlers for each message type in turn. More...
 

Public Member Functions

 AbstractProtobufSender (BlackboardManager *bb_mgr)
 Constructor. More...
 
virtual ~AbstractProtobufSender ()
 Destructor. More...
 
virtual void process_sending_interfaces ()=0
 Go through all interface managers, empty all blackboard message queues and send out ProtoBuf messages accordingly. More...
 
virtual void init ()=0
 Deferred initialization, coincides with the main thread. More...
 
virtual void finalize ()=0
 Deferred cleanup, concides with the main thread. More...
 

Protected Attributes

BlackboardManagerbb_manager
 Pointer to the main thread that uses this. More...
 

Detailed Description

Abstract superclass for sending out ProtoBuf messages.

Definition at line 113 of file blackboard_manager.h.

Constructor & Destructor Documentation

◆ AbstractProtobufSender()

protoboard::AbstractProtobufSender::AbstractProtobufSender ( BlackboardManager bb_mgr)

Constructor.

Parameters
bb_mgrThe BlackboardManager that uses this

Definition at line 33 of file blackboard_manager.cpp.

◆ ~AbstractProtobufSender()

protoboard::AbstractProtobufSender::~AbstractProtobufSender ( )
virtual

Destructor.

Definition at line 37 of file blackboard_manager.cpp.

Member Function Documentation

◆ finalize()

virtual void protoboard::AbstractProtobufSender::finalize ( )
pure virtual

Deferred cleanup, concides with the main thread.

Implemented in protoboard::ProtobufSender< IfaceManagerTs >.

◆ init()

virtual void protoboard::AbstractProtobufSender::init ( )
pure virtual

Deferred initialization, coincides with the main thread.

Implemented in protoboard::ProtobufSender< IfaceManagerTs >.

◆ process_sending_interfaces()

virtual void protoboard::AbstractProtobufSender::process_sending_interfaces ( )
pure virtual

Go through all interface managers, empty all blackboard message queues and send out ProtoBuf messages accordingly.

Implemented in protoboard::ProtobufSender< IfaceManagerTs >.

Member Data Documentation

◆ bb_manager

BlackboardManager* protoboard::AbstractProtobufSender::bb_manager
protected

Pointer to the main thread that uses this.

Definition at line 135 of file blackboard_manager.h.

Referenced by protoboard::ProtobufSender< IfaceManagerTs >::process_sending_interfaces().


The documentation for this class was generated from the following files: