Information about a connection between two ports. More...
#include <yarp/os/Route.h>
Public Member Functions | |
| Route (const std::string &fromName, const std::string &toName, const std::string &carrierName) | |
| Create a route. | |
| Route (const Route &rhs) | |
| Copy constructor. | |
| Route (Route &&rhs) noexcept | |
| Move constructor. | |
| Route & | operator= (const Route &rhs) |
| Copy assignment operator. | |
| Route & | operator= (Route &&rhs) noexcept |
| Move assignment operator. | |
| const std::string & | getFromName () const |
| Get the source of the route. | |
| void | setFromName (const std::string &fromName) |
| Set the source of the route. | |
| const std::string & | getToName () const |
| Get the destination of the route. | |
| void | setToName (const std::string &toName) |
| Set the destination of the route. | |
| const Contact & | getToContact () const |
| Get the destination contact of the route, if available. | |
| void | setToContact (const Contact &toContact) |
| Set the destination contact of the route. | |
| const std::string & | getCarrierName () const |
| Get the carrier type of the route. | |
| void | setCarrierName (const std::string &carrierName) |
| Set the carrier type of the route. | |
| void | swapNames () |
| Swap from and to names. | |
| std::string | toString () const |
| Render a text form of the route, "source->carrier->dest". | |
Information about a connection between two ports.
Contains the names of the endpoints, and the name of the carrier in use between them.
|
noexcept |
| const std::string & Route::getCarrierName | ( | ) | const |
| const std::string & Route::getFromName | ( | ) | const |
| const std::string & Route::getToName | ( | ) | const |
| std::string Route::toString | ( | ) | const |