UNPKG

ifc-expressions

Version:

Parsing and evaluation of IFC expressions

22 lines (21 loc) 992 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TOIFCDURATION = void 0; const Func_js_1 = require("../Func.js"); const ExprEvalResult_js_1 = require("../../ExprEvalResult.js"); const Types_js_1 = require("../../../type/Types.js"); const FuncArgIfcDurationString_js_1 = require("../arg/FuncArgIfcDurationString.js"); const IfcDurationValue_js_1 = require("../../../value/IfcDurationValue.js"); class TOIFCDURATION extends Func_js_1.Func { constructor() { super("TOIFCDURATION", [new FuncArgIfcDurationString_js_1.FuncArgIfcDurationString(true, "duration")]); } calculateResult(callingExpr, evaluatedArguments) { return new ExprEvalResult_js_1.ExprEvalSuccessObj(IfcDurationValue_js_1.IfcDurationValue.of(evaluatedArguments.get("duration").getValue())); } getReturnType(argumentTypes) { return Types_js_1.Type.IFC_DURATION; } } exports.TOIFCDURATION = TOIFCDURATION; //# sourceMappingURL=TOIFCDURATION.js.map