|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_OS_NAMESPACE_H
10 #define YARP_OS_NAMESPACE_H
37 virtual bool checkNetwork();
47 virtual bool checkNetwork(
double timeout);
59 virtual std::string getNameServerName()
const;
100 return registerContact(contact);
111 return unregisterName(name);
118 const std::string& key,
119 const Value& value) = 0;
127 const std::string& key) = 0;
206 bool& serverUsed) = 0;
221 #endif // YARP_OS_NAMESPACE_H
virtual ~NameSpace()
Destructor.
Abstract interface for a database of port names.
virtual bool connectionHasNameOfEndpoints() const =0
When connections are made involving ports managed by this NameSpace do the ports involved end up know...
virtual bool writeToNameServer(PortWriter &cmd, PortReader &reply, const ContactStyle &style)=0
Write a message to a name server for this NameSpace, if applicable.
virtual Contact queryName(const std::string &name)=0
Map from port name to contact information.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
virtual Contact registerContact(const Contact &contact)=0
Record contact information (should include a port name).
virtual bool setProperty(const std::string &name, const std::string &key, const Value &value)=0
Associate a key/value pair with a named port.
virtual Contact unregisterAdvanced(const std::string &name, NameStore *store)
Remove contact information, with access to the contact information of other ports for cross-referenci...
virtual Contact getNameServerContact() const =0
Get an address for a name server that manages the name space, if available.
virtual bool disconnectPortToPortPersistently(const Contact &src, const Contact &dest, const ContactStyle &style)=0
Disconnect two ports, removing any persistence.
virtual Contact detectNameServer(bool useDetectedServer, bool &scanNeeded, bool &serverUsed)=0
Find a name server for this NameSpace, if applicable.
virtual bool disconnectPortFromTopic(const Contact &src, const Contact &dest, const ContactStyle &style)=0
Stop publishing a port to a topic.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
virtual bool serverAllocatesPortNumbers() const =0
Check if a central server is responsible for allocating port numbers, or if this should be left up to...
virtual bool disconnectTopicFromPort(const Contact &src, const Contact &dest, const ContactStyle &style)=0
Stop subscribing a port to a topic.
virtual Contact unregisterContact(const Contact &contact)=0
Disassociate contact information (should include a port name).
virtual Value * getProperty(const std::string &name, const std::string &key)=0
Get the value of a named key from a named port.
virtual bool localOnly() const =0
Check if the NameSpace is only valid for the current process ("local").
virtual bool connectPortToTopic(const Contact &src, const Contact &dest, const ContactStyle &style)=0
Publish a port to a topic.
An abstract name space for ports.
virtual Contact registerAdvanced(const Contact &contact, NameStore *store)
Record contact information, with access to the contact information of other ports for cross-referenci...
virtual Contact unregisterName(const std::string &name)=0
Disassociate contact information from a port name.
The main, catch-all namespace for YARP.
virtual bool connectPortToPortPersistently(const Contact &src, const Contact &dest, const ContactStyle &style)=0
Connect two ports with persistence.
A single value (typically within a Bottle).
virtual Contact registerName(const std::string &name)=0
Record contact information to tie to a port name.
virtual bool usesCentralServer() const =0
Check if a central server is involved in managing the NameSpace.
virtual bool connectTopicToPort(const Contact &src, const Contact &dest, const ContactStyle &style)=0
Subscribe a port to a topic.