dyaml.constructor

Class that processes YAML mappings, sequences and scalars into nodes. This can be used to add custom data types. A tutorial can be found here.

Members

Classes

Constructor
class Constructor

Constructs YAML values.

ConstructorException
class ConstructorException

Functions

constructBinary
ubyte[] constructBinary(ref Node node)

Construct a binary (base64) _node.

constructBool
bool constructBool(ref Node node)

Construct a boolean _node.

constructLong
long constructLong(ref Node node)

Construct an integer (long) _node.

constructMap
Node.Pair[] constructMap(ref Node node)

Construct an unordered map (unordered set of key:value _pairs without duplicates) _node.

constructMerge
YAMLMerge constructMerge(ref Node node)

Construct a merge _node - a _node that merges another _node into a mapping.

constructNull
YAMLNull constructNull(ref Node node)

Construct a _null _node.

constructOrderedMap
Node.Pair[] constructOrderedMap(ref Node node)

Construct an ordered map (ordered sequence of key:value pairs without duplicates) _node.

constructPairs
Node.Pair[] constructPairs(ref Node node)

Construct a pairs (ordered sequence of key: value pairs allowing duplicates) _node.

constructReal
real constructReal(ref Node node)

Construct a floating point (real) _node.

constructSequence
Node[] constructSequence(ref Node node)

Construct a sequence (array) _node.

constructSet
Node[] constructSet(ref Node node)

Construct a set _node.

constructString
string constructString(ref Node node)

Construct a string _node.

constructTimestamp
SysTime constructTimestamp(ref Node node)

Construct a timestamp (SysTime) _node.

getPairs
Node.Pair[] getPairs(string type, Node[] nodes)

Convert a sequence of single-element mappings into a sequence of pairs.

Meta