public Node representNull(
ref Node node,
Representer representer) @safe
Represent a _null _node as a _null YAML value.
public Node representString(
ref Node node,
Representer representer) @safe
Represent a string _node as a string scalar.
public Node representBytes(
ref Node node,
Representer representer) @system
Represent a bytes _node as a binary scalar.
public Node representBool(
ref Node node,
Representer representer) @safe
Represent a bool _node as a bool scalar.
public Node representLong(
ref Node node,
Representer representer) @system
Represent a long _node as an integer scalar.
public Node representReal(
ref Node node,
Representer representer) @system
Represent a real _node as a floating point scalar.
public Node representSysTime(
ref Node node,
Representer representer) @system
Represent a SysTime _node as a timestamp.
public Node representNodes(
ref Node node,
Representer representer) @safe
Represent a sequence _node as sequence/set.
public Node.Pair[] pairs
YAML sets are mapping with null values.
public Node representPairs(
ref Node node,
Representer representer) @system
Represent a mapping _node as map/ordered map/pairs.
YAML node _representer. Prepares YAML nodes for output. A tutorial can be
found here.
Code based on PyYAML.
Functions
representNull@safe | Represent a _null _node as a _null YAML value. | |
representString@safe | Represent a string _node as a string scalar. | |
representBytes@system | Represent a bytes _node as a binary scalar. | |
representBool@safe | Represent a bool _node as a bool scalar. | |
representLong@system | Represent a long _node as an integer scalar. | |
representReal@system | Represent a real _node as a floating point scalar. | |
representSysTime@system | Represent a SysTime _node as a timestamp. | |
representNodes@safe | Represent a sequence _node as sequence/set. | |
representPairs@system | Represent a mapping _node as map/ordered map/pairs. |
Classes
RepresenterException | Exception thrown on Representer errors. | |
Representer | Represents YAML nodes as scalar, sequence and mapping nodes ready for output. |