RTT::dev::NameServerRegistrator< T > Class Template Reference

Utility class to register a given object with a nameserver, and deregister upon destruction. More...

#include <NameServerRegistrator.hpp>

List of all members.

Public Member Functions

 NameServerRegistrator (typename boost::call_traits< NameServer< T > >::reference nameserver, const NameType &name, typename boost::call_traits< T >::const_reference object)
 NameServerRegistrator ()
 NameServerRegistrator (typename boost::call_traits< NameServer< T > >::reference nameserver, const NameType &name, typename boost::call_traits< T >::const_reference object)
 NameServerRegistrator ()
 ~NameServerRegistrator ()
 ~NameServerRegistrator ()

Private Types

typedef std::string NameType
typedef std::string NameType

Private Attributes

NameServer< T > * mnameserver
mobj

Detailed Description

template<class T>
class RTT::dev::NameServerRegistrator< T >

Utility class to register a given object with a nameserver, and deregister upon destruction.

Usage: you inherit from this class, and call it's constructor in your classes constructor, then your object will be registered with the nameserver you specify, and will unregister the object on destruction.

Parameters:
T the class you wish to contain in the nameserver

Definition at line 56 of file install/include/rtt/extras/dev/NameServerRegistrator.hpp.


Member Typedef Documentation

template<class T>
typedef std::string RTT::dev::NameServerRegistrator< T >::NameType [private]

Definition at line 58 of file rtt/extras/dev/NameServerRegistrator.hpp.

template<class T>
typedef std::string RTT::dev::NameServerRegistrator< T >::NameType [private]

Constructor & Destructor Documentation

template<class T>
RTT::dev::NameServerRegistrator< T >::NameServerRegistrator (  )  [inline]
template<class T>
RTT::dev::NameServerRegistrator< T >::NameServerRegistrator ( typename boost::call_traits< NameServer< T > >::reference  nameserver,
const NameType name,
typename boost::call_traits< T >::const_reference  object 
) [inline]
template<class T>
RTT::dev::NameServerRegistrator< T >::~NameServerRegistrator (  )  [inline]
template<class T>
RTT::dev::NameServerRegistrator< T >::NameServerRegistrator (  )  [inline]

Definition at line 67 of file rtt/extras/dev/NameServerRegistrator.hpp.

template<class T>
RTT::dev::NameServerRegistrator< T >::NameServerRegistrator ( typename boost::call_traits< NameServer< T > >::reference  nameserver,
const NameType name,
typename boost::call_traits< T >::const_reference  object 
) [inline]

Definition at line 71 of file rtt/extras/dev/NameServerRegistrator.hpp.

template<class T>
RTT::dev::NameServerRegistrator< T >::~NameServerRegistrator (  )  [inline]

Definition at line 78 of file rtt/extras/dev/NameServerRegistrator.hpp.


Member Data Documentation

template<class T>
NameServer< T > * RTT::dev::NameServerRegistrator< T >::mnameserver [private]
template<class T>
T RTT::dev::NameServerRegistrator< T >::mobj [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:49:55 2013