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

#include <int.hpp>

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

Public Member Functions

 MemoryIntConverter (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< MemoryIntConverter >
 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::IntStamped &)> 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::IntStamped msg_
 

Additional Inherited Members

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

Member Typedef Documentation

typedef boost::function<void(naoqi_bridge_msgs::IntStamped&)> naoqi::converter::MemoryIntConverter::Callback_t
private

Constructor & Destructor Documentation

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

Member Function Documentation

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

Field Documentation

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

Memory key to retrieve data

naoqi_bridge_msgs::IntStamped naoqi::converter::MemoryIntConverter::msg_
private
qi::AnyObject naoqi::converter::MemoryIntConverter::p_memory_
private

Memory (Proxy) configurations


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