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

Method asBool

src/ifcparse/IfcParse.cpp:411–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411bool TokenFunc::asBool(const Token& token) {
412 if (token.type != Token_BOOL) {
413 throw IfcInvalidTokenException(token.startPos, toString(token), "boolean");
414 }
415 return token.value_int == 1;
416}
417
418boost::logic::tribool TokenFunc::asLogical(const Token& token) {
419 if (token.type != Token_BOOL) {

Callers

nothing calls this directly

Calls 1

IfcInvalidTokenExceptionFunction · 0.85

Tested by

no test coverage detected