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

Interface for maintaining persistent connections using SQL. More...

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

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

Public Member Functions

 SubscriberOnSql ()
 
 ~SubscriberOnSql () override
 
bool open (const std::string &filename, bool fresh=false)
 
bool close ()
 
bool addSubscription (const std::string &src, const std::string &dest, const std::string &mode) override
 
bool removeSubscription (const std::string &src, const std::string &dest) override
 
bool listSubscriptions (const std::string &port, yarp::os::Bottle &reply) override
 
bool welcome (const std::string &port, int activity) override
 
bool hookup (const std::string &port)
 
bool breakdown (const std::string &port)
 
bool setTopic (const std::string &port, const std::string &structure, bool active) override
 
bool listTopics (yarp::os::Bottle &topics) override
 
bool transitiveWelcome (const std::string &topic, const std::string &src, const std::string &dest, const std::string &srcFull, const std::string &destFull)
 
bool checkSubscription (const std::string &src, const std::string &dest, const std::string &srcFull, const std::string &destFull, const std::string &mode)
 
bool breakSubscription (const std::string &dropper, const std::string &src, const std::string &dest, const std::string &srcFull, const std::string &destFull, const std::string &mode)
 
bool setType (const std::string &family, const std::string &structure, const std::string &value) override
 
std::string getType (const std::string &family, const std::string &structure) override
 
- Public Member Functions inherited from yarp::serversql::impl::Subscriber
 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)
 
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

Interface for maintaining persistent connections using SQL.

Definition at line 25 of file SubscriberOnSql.h.

Constructor & Destructor Documentation

◆ SubscriberOnSql()

yarp::serversql::impl::SubscriberOnSql::SubscriberOnSql ( )
inline

Definition at line 28 of file SubscriberOnSql.h.

◆ ~SubscriberOnSql()

yarp::serversql::impl::SubscriberOnSql::~SubscriberOnSql ( )
inlineoverride

Definition at line 33 of file SubscriberOnSql.h.

Member Function Documentation

◆ addSubscription()

bool SubscriberOnSql::addSubscription ( const std::string &  src,
const std::string &  dest,
const std::string &  mode 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 183 of file SubscriberOnSql.cpp.

◆ breakdown()

bool SubscriberOnSql::breakdown ( const std::string &  port)

Definition at line 357 of file SubscriberOnSql.cpp.

◆ breakSubscription()

bool SubscriberOnSql::breakSubscription ( const std::string &  dropper,
const std::string &  src,
const std::string &  dest,
const std::string &  srcFull,
const std::string &  destFull,
const std::string &  mode 
)

Definition at line 446 of file SubscriberOnSql.cpp.

◆ checkSubscription()

bool SubscriberOnSql::checkSubscription ( const std::string &  src,
const std::string &  dest,
const std::string &  srcFull,
const std::string &  destFull,
const std::string &  mode 
)

Definition at line 394 of file SubscriberOnSql.cpp.

◆ close()

bool SubscriberOnSql::close ( )

Definition at line 174 of file SubscriberOnSql.cpp.

◆ getType()

std::string SubscriberOnSql::getType ( const std::string &  family,
const std::string &  structure 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 714 of file SubscriberOnSql.cpp.

◆ hookup()

bool SubscriberOnSql::hookup ( const std::string &  port)

Definition at line 319 of file SubscriberOnSql.cpp.

◆ listSubscriptions()

bool SubscriberOnSql::listSubscriptions ( const std::string &  port,
yarp::os::Bottle reply 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 500 of file SubscriberOnSql.cpp.

◆ listTopics()

bool SubscriberOnSql::listTopics ( yarp::os::Bottle topics)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 666 of file SubscriberOnSql.cpp.

◆ open()

bool SubscriberOnSql::open ( const std::string &  filename,
bool  fresh = false 
)

Definition at line 45 of file SubscriberOnSql.cpp.

◆ removeSubscription()

bool SubscriberOnSql::removeSubscription ( const std::string &  src,
const std::string &  dest 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 237 of file SubscriberOnSql.cpp.

◆ setTopic()

bool SubscriberOnSql::setTopic ( const std::string &  port,
const std::string &  structure,
bool  active 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 560 of file SubscriberOnSql.cpp.

◆ setType()

bool SubscriberOnSql::setType ( const std::string &  family,
const std::string &  structure,
const std::string &  value 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 689 of file SubscriberOnSql.cpp.

◆ transitiveWelcome()

bool yarp::serversql::impl::SubscriberOnSql::transitiveWelcome ( const std::string &  topic,
const std::string &  src,
const std::string &  dest,
const std::string &  srcFull,
const std::string &  destFull 
)

◆ welcome()

bool SubscriberOnSql::welcome ( const std::string &  port,
int  activity 
)
overridevirtual

Implements yarp::serversql::impl::Subscriber.

Definition at line 259 of file SubscriberOnSql.cpp.


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