dyaml.serializer
YAML serializer. Code based on PyYAML: http://www.pyyaml.org
struct Serializer
Types 1
structSerializer
Serializes represented YAML nodes, generating events which are then emitted by Emitter.
Fields
private Resolver resolver_Resolver used to determine which tags are automaticaly resolvable.private Flag!"explicitStart" explicitStart_Do all document starts have to be specified explicitly?private Flag!"explicitEnd" explicitEnd_Do all document ends have to be specified explicitly?private string YAMLVersion_YAML version string.private TagDirective[] tagDirectives_Tag directives to emit.private string[Node] anchors_Nodes with assigned anchors.private bool[Node] serializedNodes_Nodes with assigned anchors that are already serialized.private uint lastAnchorID_ID of the last anchor generated.Methods
void serialize(EmitterT)(ref EmitterT emitter, ref Node node) @safeSerialize a node, emitting it in the process.private
bool anchorable(ref Node node) static @safeDetermine if it's a good idea to add an anchor to a node.private
void anchorNode(ref Node node) @safeAdd an anchor to the node if it's anchorable and not anchored yet.private
void serializeNode(EmitterT)(ref EmitterT emitter, ref Node node) @safeSerialize a node and all its subnodes.Constructors
this(Resolver resolver,
const Flag!"explicitStart" explicitStart,
const Flag!"explicitEnd" explicitEnd, string YAMLVersion,
TagDirective[] tagDirectives)Construct a Serializer.