18 #ifndef MEMORY_STRING_CONVERTER_HPP
19 #define MEMORY_STRING_CONVERTER_HPP
24 #include "../converter_base.hpp"
30 #include <naoqi_bridge_msgs/StringStamped.h>
39 typedef boost::function<void(naoqi_bridge_msgs::StringStamped&)>
Callback_t;
49 void callAll(
const std::vector<message_actions::MessageAction>& actions );
60 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
61 naoqi_bridge_msgs::StringStamped
msg_;
std::string name() const
Definition: converter_base.hpp:54
float frequency() const
Definition: converter_base.hpp:59
MessageAction
Definition: message_actions.h:9
naoqi_bridge_msgs::StringStamped msg_
Definition: string.hpp:61
std::string memory_key_
Definition: string.hpp:56
boost::function< void(naoqi_bridge_msgs::StringStamped &)> Callback_t
Definition: string.hpp:39
void callAll(const std::vector< message_actions::MessageAction > &actions)
Definition: string.cpp:63
void reset()
Definition: string.cpp:73
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
Definition: string.cpp:40
Definition: converter_base.hpp:40
bool convert()
Definition: string.cpp:45
std::map< message_actions::MessageAction, Callback_t > callbacks_
Definition: string.hpp:60
qi::AnyObject p_memory_
Definition: string.hpp:58
MemoryStringConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session, const std::string &memory_key)
Definition: string.cpp:34
Definition: string.hpp:37