rpdl.accessors

Mixin for retrieving values from the parsed tree by path

Members

Functions

ufcsGetEnum
T ufcsGetEnum(Node node, string path)

UFCS method for Accessors.getEnum

ufcsOptEnum
T ufcsOptEnum(Node node, string path, T defaultVal)

UFCS method for Accessors.optEnum

Mixin templates

Accessors
mixintemplate Accessors()

Mixin for retrieving values from the parsed tree by path. To access to variables you can use get or opt methods e.g. getParameter will return rpdl.node.Parameter, i.e. function name builds from prefix (get or opt) and type name. If method starts with get, then method can throw an exception if value will not find by the path. If you use opt, then exception will not thrown if value didn't found, also you can set default value for value which not found. If value found but has wrong type you will get WrongNodeType exception.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.