21 #ifndef DOXYGEN_SHOULD_SKIP_THIS
26 Private(std::string fromName,
29 std::string carrierName) :
30 fromName(std::move(fromName)),
31 toName(std::move(toName)),
32 toContact(std::move(toContact)),
33 carrierName(std::move(carrierName))
40 std::string carrierName;
47 mPriv(new Private(std::string(),
55 const std::string& toName,
56 const std::string& carrierName) :
57 mPriv(new Private(fromName,
65 mPriv(new Private(*(rhs.mPriv)))
83 *mPriv = *(rhs.mPriv);
91 std::swap(mPriv, rhs.mPriv);
98 return mPriv->fromName;
103 mPriv->fromName = fromName;
108 return mPriv->toName;
113 mPriv->toName = toName;
118 return mPriv->toContact;
123 mPriv->toContact = toContact;
128 return mPriv->carrierName;
133 mPriv->carrierName = carrierName;
138 mPriv->fromName.swap(mPriv->toName);
Information about a connection between two ports.
const std::string & getToName() const
Get the destination of the route.
Route()
Default constructor.
virtual ~Route()
Destructor.
const std::string & getCarrierName() const
Get the carrier type of the route.
void setToName(const std::string &toName)
Set the destination of the route.
std::string toString() const
Render a text form of the route, "source->carrier->dest".
Route & operator=(const Route &rhs)
Copy assignment operator.
const std::string & getFromName() const
Get the source of the route.
void swapNames()
Swap from and to names.
void setFromName(const std::string &fromName)
Set the source of the route.
void setCarrierName(const std::string &carrierName)
Set the carrier type of the route.
void setToContact(const Contact &toContact)
Set the destination contact of the route.
const Contact & getToContact() const
Get the destination contact of the route, if available.