Enum YamlTag_e

Description

a bit mask for marking tags for types

Values

TAG_NONE = 0

container types

TAG_MAP = 1

!!map Unordered set of key: value pairs without duplicates.

See
https://yaml.org/type/map.html
TAG_OMAP = 2

!!omap Ordered sequence of key: value pairs without duplicates.

See
https://yaml.org/type/omap.html
TAG_PAIRS = 3

!!pairs Ordered sequence of key: value pairs allowing duplicates.

See
https://yaml.org/type/pairs.html
TAG_SET = 4

!!set Unordered set of non-equal values.

See
https://yaml.org/type/set.html
TAG_SEQ = 5

!!seq Sequence of arbitrary values.

See
https://yaml.org/type/seq.html
TAG_BINARY = 6

scalar types

!!binary A sequence of zero or more octets (8 bit values).

See
https://yaml.org/type/binary.html
TAG_BOOL = 7

!!bool Mathematical Booleans.

See
https://yaml.org/type/bool.html
TAG_FLOAT = 8

!!float Floating-point approximation to real numbers. https://yaml.org/type/float.html

TAG_INT = 9

!!float Mathematical integers. https://yaml.org/type/int.html

TAG_MERGE = 10

!!merge Specify one or more mapping to be merged with the current one. https://yaml.org/type/merge.html

TAG_NULL = 11

!!null Devoid of value. https://yaml.org/type/null.html

TAG_STR = 12

!!str A sequence of zero or more Unicode characters. https://yaml.org/type/str.html

TAG_TIMESTAMP = 13

!!timestamp A point in time https://yaml.org/type/timestamp.html

TAG_VALUE = 14

!!value Specify the default value of a mapping https://yaml.org/type/value.html

TAG_YAML = 15

!!yaml Specify the default value of a mapping https://yaml.org/type/yaml.html

Source

Lines 88-107 in src/c4/yml/tree.hpp.

typedef enum : uint8_t {
    // container types
    TAG_NONE      =  0,
    TAG_MAP       =  1, /**< !!map   Unordered set of key: value pairs without duplicates. @see https://yaml.org/type/map.html */
    TAG_OMAP      =  2, /**< !!omap  Ordered sequence of key: value pairs without duplicates. @see https://yaml.org/type/omap.html */
    TAG_PAIRS     =  3, /**< !!pairs Ordered sequence of key: value pairs allowing duplicates. @see https://yaml.org/type/pairs.html */
    TAG_SET       =  4, /**< !!set   Unordered set of non-equal values. @see https://yaml.org/type/set.html */
    TAG_SEQ       =  5, /**< !!seq   Sequence of arbitrary values. @see https://yaml.org/type/seq.html */
    // scalar types
    TAG_BINARY    =  6, /**< !!binary A sequence of zero or more octets (8 bit values). @see https://yaml.org/type/binary.html */
    TAG_BOOL      =  7, /**< !!bool   Mathematical Booleans. @see https://yaml.org/type/bool.html */
    TAG_FLOAT     =  8, /**< !!float  Floating-point approximation to real numbers. https://yaml.org/type/float.html */
    TAG_INT       =  9, /**< !!float  Mathematical integers. https://yaml.org/type/int.html */
    TAG_MERGE     = 10, /**< !!merge  Specify one or more mapping to be merged with the current one. https://yaml.org/type/merge.html */
    TAG_NULL      = 11, /**< !!null   Devoid of value. https://yaml.org/type/null.html */
    TAG_STR       = 12, /**< !!str    A sequence of zero or more Unicode characters. https://yaml.org/type/str.html */
    TAG_TIMESTAMP = 13, /**< !!timestamp A point in time https://yaml.org/type/timestamp.html */
    TAG_VALUE     = 14, /**< !!value  Specify the default value of a mapping https://yaml.org/type/value.html */
    TAG_YAML      = 15, /**< !!yaml   Specify the default value of a mapping https://yaml.org/type/yaml.html */
} YamlTag_e;





Add Discussion as Guest

Log in