naoqidriver
Data Structures | Public Member Functions | Private Attributes | Friends
naoqi::converter::Converter Class Reference

Converter concept interface. More...

#include <converter.hpp>

Data Structures

struct  ConverterConcept
 
struct  ConverterModel
 

Public Member Functions

template<typename T >
 Converter (T conv)
 Constructor for converter interface. More...
 
std::string name () const
 getting the descriptive name for this converter instance More...
 
float frequency () const
 getting the assigned frequency of this converter instance More...
 
void reset ()
 
void callAll (const std::vector< message_actions::MessageAction > &actions)
 
ros::Duration lapseTime () const
 

Private Attributes

ros::Time before
 
ros::Duration lapse_time
 
boost::shared_ptr< ConverterConceptconvPtr_
 

Friends

bool operator== (const Converter &lhs, const Converter &rhs)
 

Detailed Description

Converter concept interface.

Note
this defines an private concept struct, which each instance has to implement
a type erasure pattern in implemented here to avoid strict inheritance, thus each possible converter instance has to implement the virtual functions mentioned in the concept

Constructor & Destructor Documentation

template<typename T >
naoqi::converter::Converter::Converter ( conv)
inline

Constructor for converter interface.

Member Function Documentation

void naoqi::converter::Converter::callAll ( const std::vector< message_actions::MessageAction > &  actions)
inline
float naoqi::converter::Converter::frequency ( ) const
inline

getting the assigned frequency of this converter instance

Returns
float value indicating the frequency
ros::Duration naoqi::converter::Converter::lapseTime ( ) const
inline
std::string naoqi::converter::Converter::name ( ) const
inline

getting the descriptive name for this converter instance

Returns
string with the name
void naoqi::converter::Converter::reset ( )
inline

Friends And Related Function Documentation

bool operator== ( const Converter lhs,
const Converter rhs 
)
friend

Field Documentation

ros::Time naoqi::converter::Converter::before
private
boost::shared_ptr<ConverterConcept> naoqi::converter::Converter::convPtr_
private
ros::Duration naoqi::converter::Converter::lapse_time
private

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