Public Member Functions

XMLRPC::XMLRPCStruct Struct Reference

#include <xmlrpc.h>

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

List of all members.

Public Member Functions

 XMLRPCStruct ()
 XMLRPCStruct (const XMLNode &node)

Detailed Description

Definition at line 203 of file xmlrpc.h.


Constructor & Destructor Documentation

XMLRPC::XMLRPCStruct::XMLRPCStruct (  ) [inline]

Definition at line 205 of file xmlrpc.h.

{}
XMLRPC::XMLRPCStruct::XMLRPCStruct ( const XMLNode node )

Definition at line 198 of file xmlrpc.cpp.

References XMLRPC::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: