YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Contactables.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_CONTACTABLES_H
7#define YARP_OS_CONTACTABLES_H
8
10
11namespace yarp::os {
12
20{
21public:
22 virtual ~Contactables();
23
28 virtual void add(Contactable& contactable) = 0;
29
34 virtual void remove(Contactable& contactable) = 0;
35
44 virtual Contact query(const std::string& name,
45 const std::string& category = "") = 0;
46};
47
48} // namespace yarp::os
49
50#endif // YARP_OS_CONTACTABLES_H
Represents how to reach a part of a YARP network.
Definition Contact.h:33
An abstract port.
Definition Contactable.h:28
The yarp::os::Contactables class.
virtual void add(Contactable &contactable)=0
add a Contactable to the container.
virtual void remove(Contactable &contactable)=0
remove a Contactable from the container.
virtual Contact query(const std::string &name, const std::string &category="")=0
query the container to obtain a specified contact.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18