naoqidriver
Public Member Functions | Private Types | Private Member Functions | Private Attributes
naoqi::converter::MemoryStringConverter Class Reference

#include <string.hpp>

Inheritance diagram for naoqi::converter::MemoryStringConverter:
naoqi::converter::BaseConverter< MemoryStringConverter >

Public Member Functions

 MemoryStringConverter (const std::string &name, const float &frequency, const qi::SessionPtr &session, const std::string &memory_key)
 
void reset ()
 
void registerCallback (const message_actions::MessageAction action, Callback_t cb)
 
void callAll (const std::vector< message_actions::MessageAction > &actions)
 
- Public Member Functions inherited from naoqi::converter::BaseConverter< MemoryStringConverter >
 BaseConverter (const std::string &name, float frequency, qi::SessionPtr session)
 
virtual ~BaseConverter ()
 
std::string name () const
 
float frequency () const
 

Private Types

typedef boost::function< void(naoqi_bridge_msgs::StringStamped &)> Callback_t
 

Private Member Functions

bool convert ()
 

Private Attributes

std::string memory_key_
 
qi::AnyObject p_memory_
 
std::map< message_actions::MessageAction, Callback_tcallbacks_
 
naoqi_bridge_msgs::StringStamped msg_
 

Additional Inherited Members

- Protected Attributes inherited from naoqi::converter::BaseConverter< MemoryStringConverter >
std::string name_
 
float frequency_
 
const robot::Robotrobot_
 
qi::SessionPtr session_
 
bool record_enabled_
 

Member Typedef Documentation

typedef boost::function<void(naoqi_bridge_msgs::StringStamped&)> naoqi::converter::MemoryStringConverter::Callback_t
private

Constructor & Destructor Documentation

naoqi::converter::MemoryStringConverter::MemoryStringConverter ( const std::string &  name,
const float &  frequency,
const qi::SessionPtr &  session,
const std::string &  memory_key 
)

Member Function Documentation

void naoqi::converter::MemoryStringConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)
bool naoqi::converter::MemoryStringConverter::convert ( )
private
void naoqi::converter::MemoryStringConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)
void naoqi::converter::MemoryStringConverter::reset ( )

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::MemoryStringConverter::callbacks_
private
std::string naoqi::converter::MemoryStringConverter::memory_key_
private

Memory key to retrieve data

naoqi_bridge_msgs::StringStamped naoqi::converter::MemoryStringConverter::msg_
private
qi::AnyObject naoqi::converter::MemoryStringConverter::p_memory_
private

Memory (Proxy) configurations


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