Fawkes API
Fawkes Development Version
|
A special handler for repeated ProtoBuf fields. More...
#include <protobuf_to_bb.h>
Public Member Functions | |
pb_sequence_converter () | |
Default constructor. More... | |
virtual void | handle (const google::protobuf::Message &msg) override |
Handle a repeated field inside a ProtoBuf message, where the individual repeated sub-messages should be mapped to a blackboard interface each. More... | |
virtual const sequence_type & | extract_sequence (const ProtoT &msg) |
Must be implemented by the user. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
fawkes::BlackBoard * | blackboard_ |
Blackboard used by the main thread. More... | |
fawkes::Logger * | logger_ |
Logger from the main thread. More... | |
A special handler for repeated ProtoBuf fields.
ProtoT | the ProtoBuf message type that contains a repeated field we want to unwrap |
The | pb_converter type that should be used (repeatedly) on the repeated field |
Definition at line 245 of file protobuf_to_bb.h.
|
inline |
Default constructor.
Definition at line 252 of file protobuf_to_bb.h.
|
virtual |
Must be implemented by the user.
msg | The message containing the repeated field |
Referenced by protoboard::pb_sequence_converter< ProtoT, OutputT >::handle().
|
inlineoverridevirtual |
Handle a repeated field inside a ProtoBuf message, where the individual repeated sub-messages should be mapped to a blackboard interface each.
msg | The message containing the repeated field that should be extracted |
Reimplemented from protoboard::pb_convert.
Definition at line 260 of file protobuf_to_bb.h.
References protoboard::pb_convert::blackboard_, protoboard::pb_sequence_converter< ProtoT, OutputT >::extract_sequence(), and protoboard::pb_convert::logger_.