#include <yarp/os/YarpNameSpace.h>
Public Member Functions | |
YarpNameSpace (const Contact &contact) | |
virtual | ~YarpNameSpace () |
Contact | getNameServerContact () const override |
Get an address for a name server that manages the name space, if available. More... | |
Contact | queryName (const std::string &name) override |
Map from port name to contact information. More... | |
Contact | registerName (const std::string &name) override |
Record contact information to tie to a port name. More... | |
Contact | registerContact (const Contact &contact) override |
Record contact information (should include a port name). More... | |
Contact | unregisterName (const std::string &name) override |
Disassociate contact information from a port name. More... | |
Contact | unregisterContact (const Contact &contact) override |
Disassociate contact information (should include a port name). More... | |
virtual bool | setProperty (const std::string &name, const std::string &key, const Value &value) override |
Associate a key/value pair with a named port. More... | |
virtual Value * | getProperty (const std::string &name, const std::string &key) override |
Get the value of a named key from a named port. More... | |
virtual bool | connectPortToTopic (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Publish a port to a topic. More... | |
virtual bool | connectTopicToPort (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Subscribe a port to a topic. More... | |
virtual bool | disconnectPortFromTopic (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Stop publishing a port to a topic. More... | |
virtual bool | disconnectTopicFromPort (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Stop subscribing a port to a topic. More... | |
virtual bool | connectPortToPortPersistently (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Connect two ports with persistence. More... | |
virtual bool | disconnectPortToPortPersistently (const Contact &src, const Contact &dest, const ContactStyle &style) override |
Disconnect two ports, removing any persistence. More... | |
virtual bool | connectTopic (const std::string &dir, bool srcIsTopic, bool destIsTopic, const Contact &src, const Contact &dest, const ContactStyle &style) |
bool | localOnly () const override |
Check if the NameSpace is only valid for the current process ("local"). More... | |
bool | usesCentralServer () const override |
Check if a central server is involved in managing the NameSpace. More... | |
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. More... | |
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? More... | |
virtual Contact | detectNameServer (bool useDetectedServer, bool &scanNeeded, bool &serverUsed) override |
Find a name server for this NameSpace, if applicable. More... | |
virtual bool | writeToNameServer (PortWriter &cmd, PortReader &reply, const ContactStyle &style) override |
Write a message to a name server for this NameSpace, if applicable. More... | |
Public Member Functions inherited from yarp::os::NameSpace | |
virtual | ~NameSpace () |
Destructor. More... | |
virtual bool | checkNetwork () |
Check if a name space is available. More... | |
virtual bool | checkNetwork (double timeout) |
Check if a name space is available, with a timeout on any network operations needed. More... | |
virtual std::string | getNameServerName () const |
Get the port name of a name server that manages the name space, if available. More... | |
virtual Contact | registerAdvanced (const Contact &contact, NameStore *store) |
Record contact information, with access to the contact information of other ports for cross-referencing. More... | |
virtual Contact | unregisterAdvanced (const std::string &name, NameStore *store) |
Remove contact information, with access to the contact information of other ports for cross-referencing. More... | |
Definition at line 19 of file YarpNameSpace.h.
YarpNameSpace::YarpNameSpace | ( | const Contact & | contact | ) |
Definition at line 28 of file YarpNameSpace.cpp.
|
virtual |
Definition at line 36 of file YarpNameSpace.cpp.
|
inlineoverridevirtual |
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 154 of file YarpNameSpace.h.
|
inlineoverridevirtual |
Connect two ports with persistence.
Implements yarp::os::NameSpace.
Definition at line 76 of file YarpNameSpace.h.
|
inlineoverridevirtual |
Publish a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 48 of file YarpNameSpace.h.
|
inlinevirtual |
Definition at line 90 of file YarpNameSpace.h.
|
inlineoverridevirtual |
Subscribe a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 55 of file YarpNameSpace.h.
|
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 144 of file YarpNameSpace.cpp.
|
inlineoverridevirtual |
Stop publishing a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 62 of file YarpNameSpace.h.
|
inlineoverridevirtual |
Disconnect two ports, removing any persistence.
Implements yarp::os::NameSpace.
Definition at line 83 of file YarpNameSpace.h.
|
inlineoverridevirtual |
Stop subscribing a port to a topic.
Implements yarp::os::NameSpace.
Definition at line 69 of file YarpNameSpace.h.
|
inlineoverridevirtual |
Get an address for a name server that manages the name space, if available.
Implements yarp::os::NameSpace.
Reimplemented in yarp::os::YarpDummyNameSpace.
Definition at line 26 of file YarpNameSpace.h.
|
overridevirtual |
Get the value of a named key from a named port.
Implements yarp::os::NameSpace.
Definition at line 131 of file YarpNameSpace.cpp.
|
inlineoverridevirtual |
Check if the NameSpace is only valid for the current process ("local").
Implements yarp::os::NameSpace.
Reimplemented in yarp::os::YarpDummyNameSpace.
Definition at line 139 of file YarpNameSpace.h.
|
overridevirtual |
Map from port name to contact information.
Implements yarp::os::NameSpace.
Definition at line 44 of file YarpNameSpace.cpp.
Record contact information (should include a port name).
Implements yarp::os::NameSpace.
Definition at line 56 of file YarpNameSpace.cpp.
|
overridevirtual |
Record contact information to tie to a port name.
Implements yarp::os::NameSpace.
Definition at line 51 of file YarpNameSpace.cpp.
|
inlineoverridevirtual |
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 149 of file YarpNameSpace.h.
|
overridevirtual |
Associate a key/value pair with a named port.
Implements yarp::os::NameSpace.
Definition at line 117 of file YarpNameSpace.cpp.
Disassociate contact information (should include a port name).
Implements yarp::os::NameSpace.
Definition at line 110 of file YarpNameSpace.cpp.
|
overridevirtual |
Disassociate contact information from a port name.
Implements yarp::os::NameSpace.
Definition at line 87 of file YarpNameSpace.cpp.
|
inlineoverridevirtual |
Check if a central server is involved in managing the NameSpace.
Implements yarp::os::NameSpace.
Definition at line 144 of file YarpNameSpace.h.
|
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 172 of file YarpNameSpace.cpp.