Yet Another Robot Platform
No Matches
yarp::serversql::impl::Subscriber Class Referenceabstract

Abstract interface for maintaining persistent connections. More...

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

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

Public Member Functions

 Subscriber ()
void setStore (yarp::os::NameStore &store)
yarp::os::NameStoregetStore ()
void clear ()
void connect (const std::string &src, const std::string &dest)
void disconnect (const std::string &src, const std::string &dest, bool srcDrop)
virtual bool addSubscription (const std::string &src, const std::string &dest, const std::string &mode)=0
virtual bool removeSubscription (const std::string &src, const std::string &dest)=0
virtual bool listSubscriptions (const std::string &src, yarp::os::Bottle &reply)=0
virtual bool welcome (const std::string &port, int activity)=0
virtual bool setTopic (const std::string &port, const std::string &structure, bool active)=0
virtual bool listTopics (yarp::os::Bottle &topics)=0
virtual bool setType (const std::string &family, const std::string &structure, const std::string &value)=0
virtual std::string getType (const std::string &family, const std::string &structure)=0
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
int replyCode (bool flag)
void setDelegate (yarp::os::NameSpace *delegate)
yarp::os::NameSpacegetDelegate ()
- Public Member Functions inherited from yarp::name::NameService
virtual ~NameService ()
virtual void lock ()
virtual void unlock ()
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 ()

Detailed Description

Abstract interface for maintaining persistent connections.

Definition at line 24 of file Subscriber.h.

Constructor & Destructor Documentation

◆ Subscriber()

yarp::serversql::impl::Subscriber::Subscriber ( )

Definition at line 28 of file Subscriber.h.

Member Function Documentation

◆ addSubscription()

virtual bool yarp::serversql::impl::Subscriber::addSubscription ( const std::string &  src,
const std::string &  dest,
const std::string &  mode 
pure virtual

◆ apply()

bool Subscriber::apply ( yarp::os::Bottle cmd,
yarp::os::Bottle reply,
yarp::os::Bottle event,
const yarp::os::Contact remote 

Implements yarp::name::NameService.

Definition at line 17 of file Subscriber.cpp.

◆ clear()

void yarp::serversql::impl::Subscriber::clear ( )

Definition at line 44 of file Subscriber.h.

◆ connect()

void yarp::serversql::impl::Subscriber::connect ( const std::string &  src,
const std::string &  dest 

Definition at line 49 of file Subscriber.h.

◆ disconnect()

void yarp::serversql::impl::Subscriber::disconnect ( const std::string &  src,
const std::string &  dest,
bool  srcDrop 

Definition at line 55 of file Subscriber.h.

◆ getDelegate()

yarp::os::NameSpace * yarp::serversql::impl::Subscriber::getDelegate ( )

Definition at line 106 of file Subscriber.h.

◆ getStore()

yarp::os::NameStore * yarp::serversql::impl::Subscriber::getStore ( )

Definition at line 39 of file Subscriber.h.

◆ getType()

virtual std::string yarp::serversql::impl::Subscriber::getType ( const std::string &  family,
const std::string &  structure 
pure virtual

◆ listSubscriptions()

virtual bool yarp::serversql::impl::Subscriber::listSubscriptions ( const std::string &  src,
yarp::os::Bottle reply 
pure virtual

◆ listTopics()

virtual bool yarp::serversql::impl::Subscriber::listTopics ( yarp::os::Bottle topics)
pure virtual

◆ onEvent()

void yarp::serversql::impl::Subscriber::onEvent ( yarp::os::Bottle event)

Reimplemented from yarp::name::NameService.

Definition at line 91 of file Subscriber.h.

◆ removeSubscription()

virtual bool yarp::serversql::impl::Subscriber::removeSubscription ( const std::string &  src,
const std::string &  dest 
pure virtual

◆ replyCode()

int yarp::serversql::impl::Subscriber::replyCode ( bool  flag)

Definition at line 95 of file Subscriber.h.

◆ setDelegate()

void yarp::serversql::impl::Subscriber::setDelegate ( yarp::os::NameSpace delegate)

Definition at line 101 of file Subscriber.h.

◆ setStore()

void yarp::serversql::impl::Subscriber::setStore ( yarp::os::NameStore store)

Definition at line 34 of file Subscriber.h.

◆ setTopic()

virtual bool yarp::serversql::impl::Subscriber::setTopic ( const std::string &  port,
const std::string &  structure,
bool  active 
pure virtual

◆ setType()

virtual bool yarp::serversql::impl::Subscriber::setType ( const std::string &  family,
const std::string &  structure,
const std::string &  value 
pure virtual

◆ welcome()

virtual bool yarp::serversql::impl::Subscriber::welcome ( const std::string &  port,
int  activity 
pure virtual

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