maxon::NODE::META::STATICASSERT Namespace Reference

Functions

 MAXON_RESOURCE_DATABASE_SCOPE ("net.maxon.node.meta.staticassert")
 
 MAXON_ATTRIBUTE (Data, VAR, "var")
 
 MAXON_ATTRIBUTE (String, FORMULAIN, "formulain")
 
 MAXON_ATTRIBUTE (String, MESSAGEFORMATIN, "messageformatin")
 
 MAXON_ATTRIBUTE (Bool, RESULTBOOLOUT, "resultboolout")
 
 MAXON_ATTRIBUTE (String, ERRORMSGOUT, "errormsgout")
 

Function Documentation

◆ MAXON_RESOURCE_DATABASE_SCOPE()

maxon::NODE::META::STATICASSERT::MAXON_RESOURCE_DATABASE_SCOPE ( "net.maxon.node.meta.staticassert"  )

◆ MAXON_ATTRIBUTE() [1/5]

maxon::NODE::META::STATICASSERT::MAXON_ATTRIBUTE ( Data  ,
VAR  ,
"var"   
)

◆ MAXON_ATTRIBUTE() [2/5]

maxon::NODE::META::STATICASSERT::MAXON_ATTRIBUTE ( String  ,
FORMULAIN  ,
"formulain"   
)

Define the assertion condition with variables used to calculate the output. See DataDescriptionUIInterface::EvaluateCondition and FormulaParserInterface in API for supported functions and operators. Variable names should match the identifier of the corresponding input port ("var1", "var2", ...).

◆ MAXON_ATTRIBUTE() [3/5]

maxon::NODE::META::STATICASSERT::MAXON_ATTRIBUTE ( String  ,
MESSAGEFORMATIN  ,
"messageformatin"   
)

Write the error message to display in case of error. Condition and variables will be concatenated to form final error message on port "errormsgout". Final message will follow this pattern "messageformatin Condition(EVALUATEDCONDITION) == (RESULT)"

◆ MAXON_ATTRIBUTE() [4/5]

maxon::NODE::META::STATICASSERT::MAXON_ATTRIBUTE ( Bool  ,
RESULTBOOLOUT  ,
"resultboolout"   
)

Result of the condition's evaluation. If the condition evaluates to "condition == 0", result is false and node will show a graph error.

◆ MAXON_ATTRIBUTE() [5/5]

maxon::NODE::META::STATICASSERT::MAXON_ATTRIBUTE ( String  ,
ERRORMSGOUT  ,
"errormsgout"   
)

Contains the assertion string if the condition evaluation did not succeed.