YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Route.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_ROUTE_H
8#define YARP_OS_ROUTE_H
9
10#include <yarp/conf/compiler.h>
11
12#include <yarp/os/api.h>
13
14#include <string>
15
16namespace yarp::os {
17
18class Contact;
19
28{
29public:
35 Route();
36
44 Route(const std::string& fromName,
45 const std::string& toName,
46 const std::string& carrierName);
47
53 Route(const Route& rhs);
54
60 Route(Route&& rhs) noexcept;
61
65 virtual ~Route();
66
73 Route& operator=(const Route& rhs);
74
81 Route& operator=(Route&& rhs) noexcept;
82
91 const std::string& getFromName() const;
92
98 void setFromName(const std::string& fromName);
99
108 const std::string& getToName() const;
109
115 void setToName(const std::string& toName);
116
125 const Contact& getToContact() const;
126
132 void setToContact(const Contact& toContact);
133
142 const std::string& getCarrierName() const;
143
149 void setCarrierName(const std::string& carrierName);
150
157 void swapNames();
158
167 std::string toString() const;
168
171#ifndef DOXYGEN_SHOULD_SKIP_THIS
172private:
173 class Private;
174 Private* mPriv;
175#endif // DOXYGEN_SHOULD_SKIP_THIS
176};
177
178} // namespace yarp::os
179
180#endif // YARP_OS_ROUTE_H
std::string toString(const T &value)
convert an arbitrary type to string.
A mini-server for performing network communication in the background.
Represents how to reach a part of a YARP network.
Definition Contact.h:33
Information about a connection between two ports.
Definition Route.h:28
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18