Public Member Functions | Private Member Functions | Private Attributes
naoqi::EventRegister< Converter, Publisher, Recorder > Class Template Reference

GlobalRecorder concept interface. More...

#include <basic.hpp>

List of all members.

Public Member Functions

 EventRegister ()
 Constructor for recorder interface.
 EventRegister (const std::string &key, const qi::SessionPtr &session)
void isDumping (bool state)
void isPublishing (bool state)
void isRecording (bool state)
void resetPublisher (ros::NodeHandle &nh)
void resetRecorder (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr)
void setBufferDuration (float duration)
void startProcess ()
void stopProcess ()
void writeDump (const ros::Time &time)
 ~EventRegister ()

Private Member Functions

void onEvent ()
void registerCallback ()
void unregisterCallback ()

Private Attributes

boost::shared_ptr< Converter > converter_
bool isDumping_
bool isPublishing_
bool isRecording_
bool isStarted_
std::string key_
boost::mutex mutex_
qi::AnyObject p_memory_
boost::shared_ptr< Publisher > publisher_
boost::shared_ptr< Recorder > recorder_
qi::AnyObject signal_
qi::SignalLink signalID_

Detailed Description

template<typename Converter, typename Publisher, typename Recorder>
class naoqi::EventRegister< Converter, Publisher, Recorder >

GlobalRecorder 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 publisher instance has to implement the virtual functions mentioned in the concept

Definition at line 45 of file event/basic.hpp.


Constructor & Destructor Documentation

template<typename Converter , typename Publisher , typename Recorder >
naoqi::EventRegister< Converter, Publisher, Recorder >::EventRegister ( )

Constructor for recorder interface.

template<typename Converter , typename Publisher , typename Recorder >
naoqi::EventRegister< Converter, Publisher, Recorder >::EventRegister ( const std::string &  key,
const qi::SessionPtr &  session 
)
template<typename Converter , typename Publisher , typename Recorder >
naoqi::EventRegister< Converter, Publisher, Recorder >::~EventRegister ( )

Member Function Documentation

template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::isDumping ( bool  state)
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::isPublishing ( bool  state)
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::isRecording ( bool  state)
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::onEvent ( ) [private]
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::registerCallback ( ) [private]
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::resetPublisher ( ros::NodeHandle nh)
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::resetRecorder ( boost::shared_ptr< naoqi::recorder::GlobalRecorder gr)
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::setBufferDuration ( float  duration)
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::startProcess ( )
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::stopProcess ( )
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::unregisterCallback ( ) [private]
template<typename Converter , typename Publisher , typename Recorder >
void naoqi::EventRegister< Converter, Publisher, Recorder >::writeDump ( const ros::Time time)

Member Data Documentation

template<typename Converter , typename Publisher , typename Recorder >
boost::shared_ptr<Converter> naoqi::EventRegister< Converter, Publisher, Recorder >::converter_ [private]

Definition at line 76 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
bool naoqi::EventRegister< Converter, Publisher, Recorder >::isDumping_ [private]

Definition at line 90 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
bool naoqi::EventRegister< Converter, Publisher, Recorder >::isPublishing_ [private]

Definition at line 88 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
bool naoqi::EventRegister< Converter, Publisher, Recorder >::isRecording_ [private]

Definition at line 89 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
bool naoqi::EventRegister< Converter, Publisher, Recorder >::isStarted_ [private]

Definition at line 87 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
std::string naoqi::EventRegister< Converter, Publisher, Recorder >::key_ [private]

Definition at line 83 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
boost::mutex naoqi::EventRegister< Converter, Publisher, Recorder >::mutex_ [private]

Definition at line 85 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
qi::AnyObject naoqi::EventRegister< Converter, Publisher, Recorder >::p_memory_ [private]

Definition at line 80 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
boost::shared_ptr<Publisher> naoqi::EventRegister< Converter, Publisher, Recorder >::publisher_ [private]

Definition at line 77 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
boost::shared_ptr<Recorder> naoqi::EventRegister< Converter, Publisher, Recorder >::recorder_ [private]

Definition at line 78 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
qi::AnyObject naoqi::EventRegister< Converter, Publisher, Recorder >::signal_ [private]

Definition at line 81 of file event/basic.hpp.

template<typename Converter , typename Publisher , typename Recorder >
qi::SignalLink naoqi::EventRegister< Converter, Publisher, Recorder >::signalID_ [private]

Definition at line 82 of file event/basic.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