#include <xmlrpc.h>
Public Member Functions | |
XMLRPCStruct () | |
XMLRPCStruct (const XMLNode &node) |
Definition at line 203 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; } }