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

Method setValueBoolVector

framework/serialization/serialize.cpp:380–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void XMLSerializationNode::setValueBoolVector(const std::vector<bool> &vec)
381{
382 std::string str(vec.size(), ' ');
383
384 for (size_t i = 0; i < vec.size(); i++)
385 {
386 auto b = vec[i];
387 if (b)
388 str[i] = '1';
389 else
390 str[i] = '0';
391 }
392 this->setValue(str);
393}
394
395UString XMLSerializationNode::getFullPath()
396{

Callers 1

serializeOutFunction · 0.80

Calls 2

setValueMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected