Public Member Functions | Private Types | Private Attributes
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 ()
 NameServerRegistrator (typename boost::call_traits< NameServer< T > >::reference nameserver, const NameType &name, typename boost::call_traits< T >::const_reference object)
 ~NameServerRegistrator ()

Private Types

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:
Tthe class you wish to contain in the nameserver

Definition at line 56 of file NameServerRegistrator.hpp.


Member Typedef Documentation

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

Definition at line 58 of file NameServerRegistrator.hpp.


Constructor & Destructor Documentation

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

Definition at line 67 of file 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 NameServerRegistrator.hpp.

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

Definition at line 78 of file NameServerRegistrator.hpp.


Member Data Documentation

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

Definition at line 61 of file NameServerRegistrator.hpp.

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

Definition at line 64 of file NameServerRegistrator.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:16:24