Fawkes API
Fawkes Development Version
|
Default ProtoBuf to blackboard converter. More...
#include <protobuf_to_bb.h>
Public Member Functions | |
pb_convert () | |
Empty-init constructor. More... | |
pb_convert (const pb_convert &)=default | |
Default copy constructor. More... | |
virtual | ~pb_convert () |
Destructor. Does nothing since members aren't owned by this class. More... | |
pb_convert & | operator= (const pb_convert &)=default |
Default copy assignment. More... | |
virtual void | init (fawkes::BlackBoard *blackboard, fawkes::Logger *logger, const std::string &="") |
Deferred initialization. More... | |
virtual void | handle (std::shared_ptr< google::protobuf::Message > msg) |
Dereference msg and pass it on to handle it by reference. More... | |
virtual void | handle (const google::protobuf::Message &msg) |
Handle a ProtoBuf message by reference. More... | |
Protected Attributes | |
fawkes::BlackBoard * | blackboard_ |
Blackboard used by the main thread. More... | |
fawkes::Logger * | logger_ |
Logger from the main thread. More... | |
Default ProtoBuf to blackboard converter.
This class just defines the necessary operations but does nothing in itself. Thus it can be used to silently ignore certain incoming ProtoBuf message types.
Definition at line 53 of file protobuf_to_bb.h.
protoboard::pb_convert::pb_convert | ( | ) |
Empty-init constructor.
Definition at line 28 of file protobuf_to_bb.cpp.
|
default |
Default copy constructor.
|
virtual |
Destructor. Does nothing since members aren't owned by this class.
Definition at line 32 of file protobuf_to_bb.cpp.
|
virtual |
Handle a ProtoBuf message by reference.
Overridden in pb_converter
msg | Reference to a generic ProtoBuf message |
Reimplemented in protoboard::pb_sequence_converter< ProtoT, OutputT >, and protoboard::pb_converter< ProtoT, IfaceT >.
Definition at line 50 of file protobuf_to_bb.cpp.
|
virtual |
Dereference msg and pass it on to handle it by reference.
msg | shared_ptr to a ProtoBuf message |
Definition at line 44 of file protobuf_to_bb.cpp.
|
virtual |
Deferred initialization.
blackboard | A pointer to a ready-to-use blackboard |
logger | A pointer to a ready-to-use logger |
Reimplemented in protoboard::pb_converter< ProtoT, IfaceT >.
Definition at line 37 of file protobuf_to_bb.cpp.
References blackboard_, and logger_.
Referenced by protoboard::pb_converter< ProtoT, IfaceT >::init().
|
default |
Default copy assignment.
Referenced by protoboard::pb_converter< ProtoT, IfaceT >::operator=().
|
protected |
Blackboard used by the main thread.
Definition at line 83 of file protobuf_to_bb.h.
Referenced by protoboard::pb_converter< ProtoT, IfaceT >::close(), protoboard::pb_sequence_converter< ProtoT, OutputT >::handle(), init(), and protoboard::pb_converter< ProtoT, IfaceT >::init().
|
protected |
Logger from the main thread.
Definition at line 85 of file protobuf_to_bb.h.
Referenced by protoboard::pb_sequence_converter< ProtoT, OutputT >::handle(), and init().