#include <yarp/os/MultiNameSpace.h>
Public Member Functions | |
MultiNameSpace () | |
virtual | ~MultiNameSpace () |
bool | setLocalMode (bool flag) |
bool | activate (bool force=false) |
Contact | getNameServerContact () const override |
Get an address for a name server that manages the name space, if available. | |
Contact | queryName (const std::string &name) override |
Map from port name to contact information. | |
Contact | registerName (const std::string &name) override |
Record contact information to tie to a port name. | |
Contact | registerContact (const Contact &contact) override |
Record contact information (should include a port name). | |
Contact | unregisterName (const std::string &name) override |
Disassociate contact information from a port name. | |
Contact | unregisterContact (const Contact &contact) override |
Disassociate contact information (should include a port name). | |
virtual bool | setProperty (const std::string &name, const std::string &key, const Value &value) override |
Associate a key/value pair with a named port. | |
Value * | getProperty (const std::string &name, const std::string &key) override |
Get the value of a named key from a named port. | |
virtual bool | connectPortToTopic (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Publish a port to a topic. | |
virtual bool | connectTopicToPort (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Subscribe a port to a topic. | |
virtual bool | disconnectPortFromTopic (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Stop publishing a port to a topic. | |
virtual bool | disconnectTopicFromPort (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Stop subscribing a port to a topic. | |
virtual bool | connectPortToPortPersistently (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Connect two ports with persistence. | |
virtual bool | disconnectPortToPortPersistently (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Disconnect two ports, removing any persistence. | |
bool | localOnly () const override |
Check if the NameSpace is only valid for the current process ("local"). | |
bool | usesCentralServer () const override |
Check if a central server is involved in managing the NameSpace. | |
bool | serverAllocatesPortNumbers () const override |
Check if a central server is responsible for allocating port numbers, or if this should be left up to the operating system. | |
bool | connectionHasNameOfEndpoints () const override |
When connections are made involving ports managed by this NameSpace do the ports involved end up knowing the names of their counterparties? | |
virtual void | queryBypass (NameStore *store) |
Set an alternative place to make name queries. | |
virtual NameStore * | getQueryBypass () |
Get any alternative place to make name queries, if one was set by queryBypass() | |
virtual Contact | detectNameServer (bool useDetectedServer, bool &scanNeeded, bool &serverUsed) override |
Find a name server for this NameSpace, if applicable. | |
virtual bool | writeToNameServer (PortWriter &cmd, PortReader &reply, const ContactStyle &style) override |
Write a message to a name server for this NameSpace, if applicable. | |
![]() | |
virtual | ~NameSpace () |
Destructor. | |
virtual bool | checkNetwork () |
Check if a name space is available. | |
virtual bool | checkNetwork (double timeout) |
Check if a name space is available, with a timeout on any network operations needed. | |
virtual std::string | getNameServerName () const |
Get the port name of a name server that manages the name space, if available. | |
virtual Contact | registerAdvanced (const Contact &contact, NameStore *store) |
Record contact information, with access to the contact information of other ports for cross-referencing. | |
virtual Contact | unregisterAdvanced (const std::string &name, NameStore *store) |
Remove contact information, with access to the contact information of other ports for cross-referencing. | |
Definition at line 14 of file MultiNameSpace.h.
MultiNameSpace::MultiNameSpace | ( | ) |
Definition at line 219 of file MultiNameSpace.cpp.
|
virtual |
Definition at line 226 of file MultiNameSpace.cpp.
Definition at line 273 of file MultiNameSpace.cpp.
|
overridevirtual |
When connections are made involving ports managed by this NameSpace do the ports involved end up knowing the names of their counterparties?
Implements yarp::os::NameSpace.
Definition at line 251 of file MultiNameSpace.cpp.
|
overridevirtual |
Connect two ports with persistence.
Implements yarp::os::NameSpace.
Definition at line 332 of file MultiNameSpace.cpp.
|
overridevirtual |
Publish a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 288 of file MultiNameSpace.cpp.
|
overridevirtual |
Subscribe a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 299 of file MultiNameSpace.cpp.
|
overridevirtual |
Find a name server for this NameSpace, if applicable.
useDetectedServer | use any server found for future queries. |
scanNeeded | set to true if a search was needed, rather than finding a name server based on cached hints. |
serverUsed | set to true if a server was found and marked for use in future queries. |
Implements yarp::os::NameSpace.
Definition at line 436 of file MultiNameSpace.cpp.
|
overridevirtual |
Stop publishing a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 310 of file MultiNameSpace.cpp.
|
overridevirtual |
Disconnect two ports, removing any persistence.
Implements yarp::os::NameSpace.
Definition at line 343 of file MultiNameSpace.cpp.
|
overridevirtual |
Stop subscribing a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 321 of file MultiNameSpace.cpp.
|
overridevirtual |
Get an address for a name server that manages the name space, if available.
Implements yarp::os::NameSpace.
Definition at line 278 of file MultiNameSpace.cpp.
|
overridevirtual |
Get the value of a named key from a named port.
Implements yarp::os::NameSpace.
Definition at line 427 of file MultiNameSpace.cpp.
|
virtual |
Get any alternative place to make name queries, if one was set by queryBypass()
Definition at line 262 of file MultiNameSpace.cpp.
|
overridevirtual |
Check if the NameSpace is only valid for the current process ("local").
Implements yarp::os::NameSpace.
Definition at line 239 of file MultiNameSpace.cpp.
Set an alternative place to make name queries.
This method is typically used when writing name servers in YARP, so you don't end up with a loop.
Definition at line 257 of file MultiNameSpace.cpp.
Map from port name to contact information.
Implements yarp::os::NameSpace.
Definition at line 283 of file MultiNameSpace.cpp.
Record contact information (should include a port name).
Implements yarp::os::NameSpace.
Definition at line 376 of file MultiNameSpace.cpp.
Record contact information to tie to a port name.
Implements yarp::os::NameSpace.
Definition at line 354 of file MultiNameSpace.cpp.
|
overridevirtual |
Check if a central server is responsible for allocating port numbers, or if this should be left up to the operating system.
Implements yarp::os::NameSpace.
Definition at line 267 of file MultiNameSpace.cpp.
Definition at line 234 of file MultiNameSpace.cpp.
|
overridevirtual |
Associate a key/value pair with a named port.
Implements yarp::os::NameSpace.
Definition at line 418 of file MultiNameSpace.cpp.
Disassociate contact information (should include a port name).
Implements yarp::os::NameSpace.
Definition at line 404 of file MultiNameSpace.cpp.
Disassociate contact information from a port name.
Implements yarp::os::NameSpace.
Definition at line 390 of file MultiNameSpace.cpp.
|
overridevirtual |
Check if a central server is involved in managing the NameSpace.
Implements yarp::os::NameSpace.
Definition at line 245 of file MultiNameSpace.cpp.
|
overridevirtual |
Write a message to a name server for this NameSpace, if applicable.
Messages are name-server-specific.
Implements yarp::os::NameSpace.
Definition at line 465 of file MultiNameSpace.cpp.