MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / deserialize

Method deserialize

src/ifcparse/IfcEntityInstanceData.cpp:395–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395bool impl::deserialize(IfcParse::impl::rocks_db_file_storage*, const std::string& val, boost::logic::tribool& t) {
396 if (val[0] != TypeEncoder::encode_type<boost::logic::tribool>()) {
397 return false;
398 }
399 if (val[1] == 0) {
400 t = false;
401 } else if (val[1] == 1) {
402 t = true;
403 } else if (val[1] == 2) {
404 t = boost::logic::indeterminate;
405 } else {
406 return false;
407 }
408 return true;
409}
410
411bool impl::deserialize(IfcParse::impl::rocks_db_file_storage*, const std::string& val, boost::dynamic_bitset<>& t) {
412 if (val[0] != TypeEncoder::encode_type<boost::dynamic_bitset<>>()) {

Callers

nothing calls this directly

Calls 8

substrMethod · 0.80
dataMethod · 0.80
assert_existanceMethod · 0.80
reserveMethod · 0.80
push_backMethod · 0.80
resetMethod · 0.45
sizeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected