nw::GffField

struct GffField

Public Functions

template<typename T>
std::optional<T> get() const

Get the field’s value.

template<typename T>
bool get_to(T &value) const

Get the field’s value.

StringView name() const

Get label.

size_t size() const

If field is a list, returns size of list, else 0.

SerializationType::type type() const

Get field type.

inline bool valid() const noexcept

Get if field is valid.

GffStruct operator[](size_t index) const

If field is a list, return struct at index, else invalid struct.