Library: UPnP
Package: Core
Header: Poco/UPnP/UniqueServiceName.h
This class represents a UPnP Unique Service Name (USN), which is used to uniquely identify UPnP devices and services.
A USN consists of one or two URNs, the first one being a UUID URN, the second one a device or service name. The two URNs are separated by two colons.
Examples for valid USNs are:
This class is mostly intended for splitting USNs into their two parts, or creating USNs from their parts.
Member Functions: toString, urn, uuid
Creates an empty UniqueServiceName.
explicit UniqueServiceName(
const std::string & usn
);
Creates the UniqueServiceName from a string.
explicit UniqueServiceName(
const Poco::UUID & uuid
);
Creates an UniqueServiceName for the given UUID.
UniqueServiceName(
const Poco::UUID & uuid,
const URN & urn
);
Creates the UniqueServiceName for the given UUID and URN.
UniqueServiceName(
const URN & uuid,
const URN & urn
);
Creates the UniqueServiceName for the given UUID and URN. The uuid URN must be of type URN_UUID.
Destroys the UniqueServiceName.
std::string toString() const;
Returns the UniqueServiceName as string.
const URN & urn() const;
Returns the urn part of the UniqueServiceName
const Poco::UUID & uuid() const;
Returns the UUID part of the UniqueServiceName.