class

CArcNumericExpression

Module
Arc
Header
#include "Arc/Core/CArcNumericExpression.h"
Namespace
Arcf

Constructors

SignatureNameDescription
CArcNumericExpression() = deleteCArcNumericExpression

Public functions

ReturnsNameDescription
boolEvaluateEvaluates text.
boolIsKnownUnitTrue when the unit name is one Evaluate understands.

Function details

CArcNumericExpression

C++
CArcNumericExpression() = delete

Evaluate

C++
static bool Evaluate(const std::string& text, double currentValue, const std::string& fieldUnit, double& outValue)

Evaluates text. fieldUnit is the field's own unit ("" for none). Returns false — and leaves outValue alone — for anything that is not a complete, valid expression: a half-typed "1e" or "2*" never produces a number.

IsKnownUnit

C++
static bool IsKnownUnit(const std::string& unit)

True when the unit name is one Evaluate understands.

Generated from Arc/Core/CArcNumericExpression.h via arc.json · Nov 5, 2026Version 1.0.0