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

Method asInt

src/ifcparse/IfcParse.cpp:397–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397int TokenFunc::asInt(const Token& token) {
398 if (token.type != Token_INT) {
399 throw IfcInvalidTokenException(token.startPos, toString(token), "integer");
400 }
401 return token.value_int;
402}
403
404int TokenFunc::asIdentifier(const Token& token) {
405 if (token.type != Token_IDENTIFIER) {

Callers

nothing calls this directly

Calls 1

IfcInvalidTokenExceptionFunction · 0.85

Tested by

no test coverage detected