Classes | Public Member Functions | Private Attributes | Friends
naoqi::converter::Converter Class Reference

Converter concept interface. More...

#include <converter.hpp>

List of all members.

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.
float frequency () const
 getting the assigned frequency of this converter instance
ros::Duration lapseTime () const
std::string name () const
 getting the descriptive name for this converter instance
void reset ()

Private Attributes

ros::Time before
boost::shared_ptr
< ConverterConcept
convPtr_
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 ( T  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.

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.

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

Definition at line 105 of file converter.hpp.

Definition at line 154 of file converter.hpp.

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 Tue Jul 9 2019 03:21:56