libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
Public Member Functions | Public Attributes | List of all members
UPnPClient::UPnPDirContent Class Reference

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< UPnPDirObjectm_containers
 
std::vector< UPnPDirObjectm_items
 

Detailed Description

Image of a MediaServer Directory Service container (directory), possibly containing items and subordinate containers.

Member Function Documentation

◆ parse()

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...

Parameters
detailedif true, populate the m_allprops field.

The documentation for this class was generated from the following files: