Defined in:Determines the validity of a substructure.
virtual bool ValidateSubstructure(const DataDescription *dataDescription, const Structure *structure) const;
||The data description object to which the structure belongs.|
||The substructure to validate.|
ValidateSubstructurefunction is called for the
Structureobject representing the enclosing data structure each time a new substructure is created to determine whether the new substructure can legally be contained in the data of the
Structureobject. An overriding implementation should examine the structure specified by the
structureparameter and return
trueif it can legally appear as a direct subnode of the
Structureobject for which the
ValidateSubstructurefunction is called. Otherwise, the function should return
An implementation would typically call the
Structure::GetStructureTypefunction to make its decision, but other information such as the base structure type or the primitive subarray size may also be taken into account. At the time that the
ValidateSubstructurefunction is called, no data belonging to the structure is available, so the data itself cannot be used to validate any substructures.
The default implementation of the
ValidateSubstructurefunction always returns