YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
13namespace yarp::os {
14
19{
20public:
21 virtual ~NameStore();
22 virtual Contact query(const std::string& name) = 0;
23 virtual bool announce(const std::string& name, int activity) = 0;
24 virtual bool process(PortWriter& in,
25 PortReader& out,
26 const Contact& source) = 0;
27};
28
29} // namespace yarp::os
30
31#endif // YARP_OS_NAMESTORE_H
A mini-server for performing network communication in the background.
Represents how to reach a part of a YARP network.
Definition Contact.h:33
Abstract interface for a database of port names.
Definition NameStore.h:19
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:24
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition PortWriter.h:23
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18