MCPcopy Create free account
hub / github.com/0ldsk00l/nestopia / Load

Method Load

source/win32/NstApplicationConfiguration.cpp:320–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 }
319
320 void Configuration::Node::Load(Xml::Node xmlNode)
321 {
322 do
323 {
324 Map::iterator it(map.insert( Map::value_type(xmlNode.GetType(),Node()) ));
325
326 it->second.parent.map = ↦
327 it->second.parent.item = it;
328
329 if (const Xml::Node xmlChild=xmlNode.GetFirstChild())
330 it->second.Load( xmlChild );
331 else
332 it->second.string = xmlNode.GetValue();
333
334 xmlNode = xmlNode.GetNextSibling();
335 }
336 while (xmlNode);
337 }
338
339 void Configuration::Node::Save(Xml::Node node,wcstring const key) const
340 {

Callers 1

ConfigurationMethod · 0.45

Calls 5

GetFirstChildMethod · 0.80
NodeClass · 0.70
GetTypeMethod · 0.45
GetValueMethod · 0.45
GetNextSiblingMethod · 0.45

Tested by

no test coverage detected