Utility class to register a given object with a nameserver, and deregister upon destruction. More...
#include <NameServerRegistrator.hpp>
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 |
T | mobj |
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.
T | the class you wish to contain in the nameserver |
Definition at line 56 of file NameServerRegistrator.hpp.
|
private |
Definition at line 58 of file NameServerRegistrator.hpp.
|
inline |
Definition at line 67 of file NameServerRegistrator.hpp.
|
inline |
Definition at line 71 of file NameServerRegistrator.hpp.
|
inline |
Definition at line 78 of file NameServerRegistrator.hpp.
|
private |
Definition at line 61 of file NameServerRegistrator.hpp.
|
private |
Definition at line 64 of file NameServerRegistrator.hpp.