libupnpp
0.16.0
A C++ wrapper for the Portable UPnP reference library
|
Data holder for a UPnP device, parsed from the XML description obtained during discovery. More...
#include <description.hxx>
Public Member Functions | |
UPnPDeviceDesc (const std::string &url, const std::string &description) | |
Build device from the XML description downloaded during discovery. More... | |
void | clear () |
std::string | dump () const |
Public Attributes | |
bool | ok {false} |
Parse success status. | |
std::string | deviceType |
Device Type: e.g. urn:schemas-upnp-org:device:MediaServer:1. | |
std::string | friendlyName |
User-configurable name (usually), e.g. Lounge-streamer. | |
std::string | UDN |
Unique Device Number. More... | |
std::string | URLBase |
Base for all relative URLs. e.g. http://192.168.4.4:49152/. | |
std::string | manufacturer |
Manufacturer: e.g. D-Link, PacketVideo. | |
std::string | modelName |
Model name: e.g. MediaTomb, DNS-327L. | |
std::string | XMLText |
Raw downloaded document. | |
std::vector< UPnPServiceDesc > | services |
Services provided by this device. | |
std::vector< UPnPDeviceDesc > | embedded |
Embedded devices. More... | |
Data holder for a UPnP device, parsed from the XML description obtained during discovery.
The object is built by the discovery code. User-level code gets access to the data by using the device directory traversal methods.
UPnPClient::UPnPDeviceDesc::UPnPDeviceDesc | ( | const std::string & | url, |
const std::string & | description | ||
) |
Build device from the XML description downloaded during discovery.
This is an internal library call, used from the discovery module. The user code gets access to an initialized Device Description object through the device directory traversal methods.
url | where the description came from |
description | the xml device description |
std::vector<UPnPDeviceDesc> UPnPClient::UPnPDeviceDesc::embedded |
Embedded devices.
We use UPnPDeviceDesc for convenience, but they can't recursively have embedded devices (and they just get a copy of the root URLBase).
std::string UPnPClient::UPnPDeviceDesc::UDN |
Unique Device Number.
This is the same as the deviceID in the discovery message. e.g. uuid:a7bdcd12-e6c1-4c7e-b588-3bbc959eda8d