MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / addNode

Method addNode

framework/serialization/serialize.cpp:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262SerializationNode *XMLSerializationNode::addNode(const char *name, const UString &value)
263{
264 auto newNode = this->node.append_child();
265 newNode.set_name(name);
266 newNode.text().set(value.c_str());
267 return &this->archive->nodes.emplace_back(this->archive, newNode, this);
268}
269
270SerializationNode *XMLSerializationNode::getNodeOpt(const char *name)
271{

Callers 6

addSectionMethod · 0.95
serializeManifestMethod · 0.80
serializeOutFunction · 0.80
serializeMethod · 0.80
serializeOutFunction · 0.80
serializeOutSectionMapFunction · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected