YARP
Yet Another Robot Platform
yarp::serversql::impl::ComposedNameService Class Reference

Compose two name services into one. More...

#include <yarp/serversql/impl/ComposedNameService.h>

+ Inheritance diagram for yarp::serversql::impl::ComposedNameService:

Public Member Functions

 ComposedNameService ()
 
void open (NameService &ns1, NameService &ns2)
 
bool apply (yarp::os::Bottle &cmd, yarp::os::Bottle &reply, yarp::os::Bottle &event, const yarp::os::Contact &remote) override
 
void onEvent (yarp::os::Bottle &event) override
 
void goPublic () override
 
yarp::os::Contact query (const std::string &name) override
 
bool announce (const std::string &name, int activity) override
 
- Public Member Functions inherited from yarp::name::NameService
virtual ~NameService ()
 
virtual void lock ()
 
virtual void unlock ()
 
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 ()
 

Detailed Description

Compose two name services into one.

Definition at line 25 of file ComposedNameService.h.

Constructor & Destructor Documentation

◆ ComposedNameService()

yarp::serversql::impl::ComposedNameService::ComposedNameService ( )
inline

Definition at line 28 of file ComposedNameService.h.

Member Function Documentation

◆ announce()

bool yarp::serversql::impl::ComposedNameService::announce ( const std::string &  name,
int  activity 
)
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 73 of file ComposedNameService.h.

◆ apply()

bool yarp::serversql::impl::ComposedNameService::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 40 of file ComposedNameService.h.

◆ goPublic()

void yarp::serversql::impl::ComposedNameService::goPublic ( )
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 57 of file ComposedNameService.h.

◆ onEvent()

void yarp::serversql::impl::ComposedNameService::onEvent ( yarp::os::Bottle event)
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 51 of file ComposedNameService.h.

◆ open()

void yarp::serversql::impl::ComposedNameService::open ( NameService &  ns1,
NameService &  ns2 
)
inline

Definition at line 34 of file ComposedNameService.h.

◆ query()

yarp::os::Contact yarp::serversql::impl::ComposedNameService::query ( const std::string &  name)
inlineoverridevirtual

Reimplemented from yarp::name::NameService.

Definition at line 63 of file ComposedNameService.h.


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