libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
Classes | Public Member Functions | List of all members
UPnPP::SoapIncoming Class Reference

Decode incoming Soap call data. More...

#include <soaphelp.hxx>


class  Internal

Public Member Functions

bool decode (const char *name, IXML_Document *actReq)
 Construct by decoding the XML passed from libupnp. More...
const std::string & getName () const
 Get action name.
bool get (const char *nm, bool *value) const
 Get boolean parameter value.
bool get (const char *nm, int *value) const
 Get integer parameter value.
bool get (const char *nm, std::string *value) const
 Get string parameter value.
void getMap (std::unordered_map< std::string, std::string > &out)

Detailed Description

Decode incoming Soap call data.

Member Function Documentation

◆ decode()

bool UPnPP::SoapIncoming::decode ( const char *  name,
IXML_Document *  actReq 

Construct by decoding the XML passed from libupnp.

Call ok() to check if this went well.

nameWe could get this from the XML doc, but get caller gets it from libupnp, and passing it is simpler than retrieving from the input top node where it has a namespace qualifier.
actReqthe XML document containing the SOAP data.

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