18#ifndef DOXYGEN_SHOULD_SKIP_THIS
23 Private(std::string fromName,
26 std::string carrierName) :
27 fromName(
std::move(fromName)),
28 toName(
std::move(toName)),
29 toContact(
std::move(toContact)),
30 carrierName(
std::move(carrierName))
37 std::string carrierName;
44 mPriv(
new Private(
std::string(),
53 const std::string& carrierName) :
62 mPriv(
new Private(*(
rhs.mPriv)))
80 *mPriv = *(
rhs.mPriv);
88 std::swap(mPriv,
rhs.mPriv);
95 return mPriv->fromName;
105 return mPriv->toName;
115 return mPriv->toContact;
125 return mPriv->carrierName;
130 mPriv->carrierName = carrierName;
135 mPriv->fromName.swap(mPriv->toName);
A mini-server for performing network communication in the background.
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.