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

Method asIdentifier

src/ifcparse/IfcParse.cpp:404–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404int TokenFunc::asIdentifier(const Token& token) {
405 if (token.type != Token_IDENTIFIER) {
406 throw IfcInvalidTokenException(token.startPos, toString(token), "instance name");
407 }
408 return token.value_int;
409}
410
411bool TokenFunc::asBool(const Token& token) {
412 if (token.type != Token_BOOL) {

Callers

nothing calls this directly

Calls 1

IfcInvalidTokenExceptionFunction · 0.85

Tested by

no test coverage detected