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

#include <audio.hpp>

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

Public Member Functions

 AudioEventConverter (const std::string &name, const float &frequency, const qi::SessionPtr &session)
 
 ~AudioEventConverter ()
 
virtual void reset ()
 
void registerCallback (const message_actions::MessageAction action, Callback_t cb)
 
void callAll (const std::vector< message_actions::MessageAction > &actions, naoqi_bridge_msgs::AudioBuffer &msg)
 
- Public Member Functions inherited from naoqi::converter::BaseConverter< AudioEventConverter >
 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::AudioBuffer &) > Callback_t
 

Private Attributes

std::map< message_actions::MessageAction, Callback_tcallbacks_
 
naoqi_bridge_msgs::AudioBuffer msg_
 

Additional Inherited Members

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

Member Typedef Documentation

typedef boost::function<void(naoqi_bridge_msgs::AudioBuffer&) > naoqi::converter::AudioEventConverter::Callback_t
private

Constructor & Destructor Documentation

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

Member Function Documentation

void naoqi::converter::AudioEventConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions,
naoqi_bridge_msgs::AudioBuffer &  msg 
)
void naoqi::converter::AudioEventConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)
void naoqi::converter::AudioEventConverter::reset ( )
virtual

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::AudioEventConverter::callbacks_
private

Registered Callbacks

naoqi_bridge_msgs::AudioBuffer naoqi::converter::AudioEventConverter::msg_
private

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