| 409 | } |
| 410 | |
| 411 | bool 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 | |
| 418 | boost::logic::tribool TokenFunc::asLogical(const Token& token) { |
| 419 | if (token.type != Token_BOOL) { |
nothing calls this directly
no test coverage detected