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