YARP
Yet Another Robot Platform
NameStore.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_OS_NAMESTORE_H
8 #define YARP_OS_NAMESTORE_H
9 
10 #include <yarp/os/Bottle.h>
11 #include <yarp/os/Contact.h>
12 
13 namespace yarp {
14 namespace os {
15 
20 {
21 public:
22  virtual ~NameStore();
23  virtual Contact query(const std::string& name) = 0;
24  virtual bool announce(const std::string& name, int activity) = 0;
25  virtual bool process(PortWriter& in,
26  PortReader& out,
27  const Contact& source) = 0;
28 };
29 
30 } // namespace os
31 } // namespace yarp
32 
33 #endif // YARP_OS_NAMESTORE_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
Abstract interface for a database of port names.
Definition: NameStore.h:20
virtual bool announce(const std::string &name, int activity)=0
virtual bool process(PortWriter &in, PortReader &out, const Contact &source)=0
virtual Contact query(const std::string &name)=0
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition: PortWriter.h:24
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18