A maxon::DataType object represents a registered data type of the MAXON API ALIASES. It is used to check the type of some given data at run time or to write generic template code.
The maxon::DataType object representing a specific data type can be accessed with maxon::GetDataType():
The maxon::DataType object is used to register and apply specific conversions from and to the defined data type.
Available conversion types are:
Two maxon:DataType objects can be compared using the "==" operator or with some more sophisticated functions:
Using the maxon::DataType object it is also possible two compare two object of this data type:
The maxon::DataType object can be used to create new object instances of the define type:
Also interfaces are registered as a maxon::DataType.
Data stored in an object of a given maxon::DataType can be written to a file. How this is done is described by a maxon::DataSerializeInterface object.
The maxon::DataType object gives access to various properties of the described data type:
The maxon::DataType object also provides information on the type of data:
It is possible to register a data type using MAXON_DATATYPE_REGISTER_STRUCT. This will inform Cinema 4D about public members of the type. The maxon::DataType object can be used to list these public members.
See also maxon::TypeArguments and maxon::Member.