GffField

GFF generic value (used for GffStruct children). This can be used as a Variant.

Constructors

this
this(inout(FastGff) gff, inout(FastGff.Field)* field)
Undocumented in source.

Alias This

value

Members

Aliases

Value
alias Value = VariantN!(32, GffByte, GffChar, GffWord, GffShort, GffDWord, GffInt, GffDWord64, GffInt64, GffFloat, GffDouble, GffString, GffResRef, GffLocString, GffVoid, GffStruct, GffList)
Undocumented in source.

Functions

opIndex
const(GffField) opIndex(string label)

Shorthand for getting child field assuming this field is a GffStruct

opIndex
const(GffStruct) opIndex(size_t index)

Shorthand for getting child field assuming this field is a GffList

to
T to()
Undocumented in source. Be warned that the author may not have intended to support it.
toPrettyString
string toPrettyString(string tabs)

Serialize the field and its children in a human-readable format

toString
string toString()

Serialize the field in a human-readable format. Does not represents struct or list children.

Properties

label
string label [@property getter]

Get the label of this field

type
GffType type [@property getter]

Value type

value
Value value [@property getter]

Get the value as a Variant

Meta