Recommended Property Tree Enhancements: Difference between revisions

Jump to navigation Jump to search
m
→‎Validation related: http://www.mail-archive.com/flightgear-devel@flightgear.org/msg10993.html
m (Link to special directory articles)
m (→‎Validation related: http://www.mail-archive.com/flightgear-devel@flightgear.org/msg10993.html)
Line 113: Line 113:


* "unit" to directly keep track of the unit of a numeric value and optionally ensure that only values of same unit are written to a variable (currently, units are merely by convention tracked using a corresponding suffix) (also see: [http://sourceforge.net/tracker/?func=detail&aid=1241948&group_id=19399&atid=369399])
* "unit" to directly keep track of the unit of a numeric value and optionally ensure that only values of same unit are written to a variable (currently, units are merely by convention tracked using a corresponding suffix) (also see: [http://sourceforge.net/tracker/?func=detail&aid=1241948&group_id=19399&atid=369399])
* "min"/"max" attributes to define valid ranges for numeric values
* "min"/"max" attributes to define valid ranges for numeric values [http://www.mail-archive.com/flightgear-devel@flightgear.org/msg10993.html]
* "stepping" attribute to define valid stepping for numeric values
* "stepping" attribute to define valid stepping for numeric values
* "enum" for textual multi-state variables, to ensure that only valid state can be written to such a variable
* "enum" for textual multi-state variables, to ensure that only valid state can be written to such a variable
* "enum-values" - store valid values for enum type
* "enum-values" - store valid values for enum type
* "flip-around/mod" - to specify whether a value overflow means to flip back to the 1st valid state
* "wrap/mod" - to specify whether a value overflow means to flip back to the 1st valid state [http://www.mail-archive.com/flightgear-devel@flightgear.org/msg10993.html]
* "notnil" - value may never be empty/unset
* "notnil" - value may never be empty/unset
* tie restrictions ? [http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg00717.html]
* tie restrictions ? [http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg00717.html]

Navigation menu