YARP
Yet Another Robot Platform
yarp::name::NameServerManager Class Reference

Manage the name server. More...

#include <yarp/name/NameServerManager.h>

+ Inheritance diagram for yarp::name::NameServerManager:

Public Member Functions

 NameServerManager (NameService &ns, yarp::os::Port *port=NULL)
 
void setPort (yarp::os::Port &port)
 
void onEvent (yarp::os::Bottle &event) override
 
yarp::os::PortReadercreate () const override
 Factory for PortReader objects. More...
 
void lock () override
 
void unlock () override
 
virtual bool apply (yarp::os::Bottle &cmd, yarp::os::Bottle &reply, yarp::os::Bottle &event, const yarp::os::Contact &remote) override
 
- Public Member Functions inherited from yarp::name::NameService
virtual ~NameService ()
 
virtual void goPublic ()
 
yarp::os::Contact query (const std::string &name) override
 
bool announce (const std::string &name, int activity) override
 
bool process (yarp::os::PortWriter &in, yarp::os::PortReader &out, const yarp::os::Contact &remote) override
 
- Public Member Functions inherited from yarp::os::NameStore
virtual ~NameStore ()
 
- Public Member Functions inherited from yarp::os::PortReaderCreator
virtual ~PortReaderCreator ()
 Destructor. More...
 

Detailed Description

Manage the name server.

Definition at line 31 of file NameServerManager.h.

Constructor & Destructor Documentation

◆ NameServerManager()

yarp::name::NameServerManager::NameServerManager ( NameService ns,
yarp::os::Port port = NULL 
)
inline

Definition at line 38 of file NameServerManager.h.

Member Function Documentation

◆ apply()

virtual bool yarp::name::NameServerManager::apply ( yarp::os::Bottle cmd,
yarp::os::Bottle reply,
yarp::os::Bottle event,
const yarp::os::Contact remote 
)
inlineoverridevirtual

Implements yarp::name::NameService.

Definition at line 66 of file NameServerManager.h.

◆ create()

yarp::os::PortReader* yarp::name::NameServerManager::create ( ) const
inlineoverridevirtual

Factory for PortReader objects.

Returns
A new PortReader object – used to read from a connection to a Port

Implements yarp::os::PortReaderCreator.

Definition at line 54 of file NameServerManager.h.

◆ lock()

void yarp::name::NameServerManager::lock ( )
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 58 of file NameServerManager.h.

◆ onEvent()

void yarp::name::NameServerManager::onEvent ( yarp::os::Bottle event)
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 47 of file NameServerManager.h.

◆ setPort()

void yarp::name::NameServerManager::setPort ( yarp::os::Port port)
inline

Definition at line 43 of file NameServerManager.h.

◆ unlock()

void yarp::name::NameServerManager::unlock ( )
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 62 of file NameServerManager.h.


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