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

Method asString

src/ifcparse/IfcParse.cpp:458–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458std::string TokenFunc::asString(const Token& token) {
459 if (isString(token) || isEnumeration(token) || isBinary(token)) {
460 return asStringRef(token);
461 }
462 throw IfcInvalidTokenException(token.startPos, toString(token), "string");
463}
464
465boost::dynamic_bitset<> TokenFunc::asBinary(const Token& token) {
466 const std::string& str = asStringRef(token);

Callers

nothing calls this directly

Calls 1

IfcInvalidTokenExceptionFunction · 0.85

Tested by

no test coverage detected