| 326 | void XMLSerializationNode::setValueUInt(unsigned int i) { node.text().set(i); } |
| 327 | |
| 328 | unsigned char XMLSerializationNode::getValueUChar() |
| 329 | { |
| 330 | auto uint = node.text().as_uint(); |
| 331 | if (uint > std::numeric_limits<unsigned char>::max()) |
| 332 | { |
| 333 | throw SerializationException(format("Value %u is out of range of unsigned char type", uint), |
| 334 | this); |
| 335 | } |
| 336 | return static_cast<unsigned char>(uint); |
| 337 | } |
| 338 | |
| 339 | void XMLSerializationNode::setValueUChar(unsigned char c) { node.text().set((unsigned int)c); } |
| 340 |
no test coverage detected