Create a new DOFValueStructure from a list of DOFValue fields.
The number of fields is determined by the given structure type.
- Resource Management:
- This function allocates resources that must later be freed by calling DOFValue_Destroy.
- Parameters
-
type | The type of the structure to be created. This should not be NULL. |
fields | The array of DOFValue fields to put in the DOFValueStructure (the number of fields expected is determined by the type). This must not be NULL if the structure contains any fields. |
- Returns
- A new DOFValueStructure containing the given fields.
- Exceptions
-
NULL | is returned if insufficient resources are available to create the DOFValueStructure, if any of the fields are not compatible with the specified type, or if type or fields is NULL. |