Defined in:Determines the validity of a property and returns its type and location.
virtual bool ValidateProperty(const DataDescription *dataDescription, const String<>& identifier, DataType *type, void **value);
||The data description object to which the structure belongs.|
||The property identifier, as read from an OpenDDL file.|
||A pointer to the location that receives the data type for the property.|
||A pointer to the location that receives a pointer to the property's value.|
ValidatePropertyfunction is called for each property specified in an OpenDDL file for a particular data structure to determine whether the property is valid, and if so, what type it expects and where to store its value. This function should be overridden by any subclass of the
Structureclass that defines properties, and it should return
identifierparameter identifies one of the supported properties. If the string specified by the
identifierparameter is not recognized, then the function should return
false. The default implementation of the
ValidatePropertyfunction always returns
When the property identifier is valid, an implementation of the
ValidatePropertyfunction must write the type of data expected by the property to the location specified by the
typeparameter, and it must write a pointer to the location holding the property value to the location specified by the
valueparameter. The data type must be one of the following values.
||8-bit signed integer.|
||16-bit signed integer.|
||32-bit signed integer.|
||64-bit signed integer.|
||8-bit unsigned integer.|
||16-bit unsigned integer.|
||32-bit unsigned integer.|
||64-bit unsigned integer.|
Stringobject with the default template parameter of 0.
An implementation of the
ValidatePropertyfunction must always return the same results for any given property identifier. If the same property appears multiple times in the property list for a structure, then values appearing later must overwrite earlier values, and the earlier values must be ignored.