Public Member Functions

XMLRPCStruct Struct Reference

#include <xmlrpc.h>

Inheritance diagram for XMLRPCStruct:
Inheritance graph
[legend]
Collaboration diagram for XMLRPCStruct:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLRPCStruct ()
 XMLRPCStruct (const XMLNode &node)

Detailed Description

Definition at line 200 of file xmlrpc.h.


Constructor & Destructor Documentation

XMLRPCStruct::XMLRPCStruct (  ) [inline]

Definition at line 202 of file xmlrpc.h.

{}
XMLRPCStruct::XMLRPCStruct ( const XMLNode node )

Definition at line 195 of file xmlrpc.cpp.

References XMLRPCValue::get_any(), XMLStorage::XMLNode::get_children(), XMLStorage::XMLNode::get_sub_content(), and XMLStorage::const_XMLPos::go_down().

{
    const XMLNode::Children& members = node.get_children();

    for(XMLNode::Children::const_iterator it=members.begin(); it!=members.end(); ++it) {
        const XMLNode* pNode = *it;
        assert(*pNode=="member");

        string value;

        const_XMLPos pos(pNode);
        if (pos.go_down("value"))
            value = XMLRPCValue::get_any(pos);

        const string& name = pNode->get_sub_content("name");

        (*this)[name] = value;
    }
}

Here is the call graph for this function:


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