Yaml.Document – yaml-0.1 Reference Manual
Packages
yaml-0.1
Yaml
Document
Document
add_mapping
add_scalar
add_sequence
append_mapping_pair
append_sequence_item
get_node
get_root_node
end_implicit
end_mark
node_end
node_start
node_top
start_implicit
start_mark
tag_directives_end
tag_directives_start
version_directive
Document
Object Hierarchy:
Description:
[
CCode
( cname =
"yaml_document_t"
, destroy_function =
"yaml_document_delete"
, has_type_id =
false
) ]
public
struct
Document
The document structure.
Namespace:
Yaml
Package:
yaml-0.1
Content:
Creation methods:
public
Document
(
VersionDirective
? version_directive,
TagDirective
tag_directives_start,
TagDirective
tag_directives_end,
int
start_implicit,
int
end_implicit)
Create a YAML document.
Methods:
public
int
add_mapping
(
string
tag,
MappingStyle
style)
Create a MAPPING node and attach it to the document.
public
int
add_scalar
(
string
tag,
string
value,
int
length,
ScalarStyle
style)
Create a SCALAR node and attach it to the document.
public
int
add_sequence
(
string
tag,
SequenceStyle
style)
Create a SEQUENCE node and attach it to the document.
public
int
append_mapping_pair
(
int
mapping,
int
key,
int
value)
Add a pair of a key and a value to a MAPPING node.
public
int
append_sequence_item
(
int
sequence,
int
item)
Add an item to a SEQUENCE node.
public
Node
?
get_node
(
int
index)
Get a node of a YAML document.
public
Node
?
get_root_node
()
Get the root of a YAML document node.
Fields:
public
Node
?
node_start
The beginning of the stack.
public
Node
?
node_end
The end of the stack.
public
Node
?
node_top
The top of the stack.
public
VersionDirective
?
version_directive
The version directive.
public
TagDirective
?
tag_directives_start
The beginning of the tag directives list.
public
TagDirective
?
tag_directives_end
The end of the tag directives list.
public
int
start_implicit
Is the document start indicator implicit?
public
int
end_implicit
Is the document end indicator implicit?
public
Mark
start_mark
The beginning of the document.
public
Mark
end_mark
The end of the document.