libupnpp
0.16.0
A C++ wrapper for the Portable UPnP reference library
|
Image of a MediaServer Directory Service container (directory), possibly containing items and subordinate containers. More...
#include <cdircontent.hxx>
Public Member Functions | |
void | clear () |
bool | parse (const std::string &didltext, bool detailed=false) |
Parse from DIDL-Lite XML data. More... | |
Public Attributes | |
std::vector< UPnPDirObject > | m_containers |
std::vector< UPnPDirObject > | m_items |
Image of a MediaServer Directory Service container (directory), possibly containing items and subordinate containers.
bool UPnPClient::UPnPDirContent::parse | ( | const std::string & | didltext, |
bool | detailed = false |
||
) |
Parse from DIDL-Lite XML data.
Normally only used by ContentDirectory::readDir() This is cumulative: in general, the XML data is obtained in several documents corresponding to (offset,count) slices of the directory (container). parse() can be called repeatedly with the successive XML documents and will accumulate entries in the item and container vectors. This makes more sense if the different chunks are from the same container, but given that UPnP Ids are actually global, nothing really bad will happen if you mix up...
detailed | if true, populate the m_allprops field. |