Classes | Public Member Functions | Private Attributes | Friends | List of all members
naoqi::converter::Converter Class Reference

Converter concept interface. More...

#include <converter.hpp>

Classes

struct  ConverterConcept
 
struct  ConverterModel
 

Public Member Functions

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

Private Attributes

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

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

Definition at line 42 of file converter.hpp.

Constructor & Destructor Documentation

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

Constructor for converter interface.

Definition at line 51 of file converter.hpp.

Member Function Documentation

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

Definition at line 78 of file converter.hpp.

float naoqi::converter::Converter::frequency ( ) const
inline

getting the assigned frequency of this converter instance

Returns
float value indicating the frequency

Definition at line 68 of file converter.hpp.

ros::Duration naoqi::converter::Converter::lapseTime ( ) const
inline

Definition at line 90 of file converter.hpp.

std::string naoqi::converter::Converter::name ( ) const
inline

getting the descriptive name for this converter instance

Returns
string with the name

Definition at line 59 of file converter.hpp.

void naoqi::converter::Converter::reset ( )
inline

Definition at line 73 of file converter.hpp.

Friends And Related Function Documentation

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

Definition at line 95 of file converter.hpp.

Member Data Documentation

ros::Time naoqi::converter::Converter::before
private

Definition at line 105 of file converter.hpp.

boost::shared_ptr<ConverterConcept> naoqi::converter::Converter::convPtr_
private

Definition at line 154 of file converter.hpp.

ros::Duration naoqi::converter::Converter::lapse_time
private

Definition at line 106 of file converter.hpp.


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


naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 15 2020 03:24:26