struct RTTIField

Structure that keeps meta-data concerning a single class field.

You can use this data for setting and getting values for that field on a specific class instance.

Class also contains an unique field name, and an unique field ID. Fields may contain single types or an array of types. See SerializableFieldType for information about specific field types.

Public

Methods

~RTTIField

virtual ~RTTIField() noexcept = default

InitSchema

virtual void InitSchema()

Initializes the field's RTTI schema.

Should be called once after construction.

CheckIsArray

void CheckIsArray(bool array) const

Throws an exception depending if the field is or isn't an array.

array
If true, then exception will be thrown if field is not an array. If false, then it will be thrown if field is an array.

Fields

Name

String Name

Schema

Protected

Methods

Init

void Init(String name, const RTTIFieldSchema &schema)