Unit: |
SDL_matrix |
Class: |
TMat4D |
Declaration: |
function ReadFromOpenXMLFile (var InFile: TextFile; DataID: string): boolean; |
The function ReadFromOpenXMLFile reads a hypercube matrix from the current position of the file InFile. If the parameter DataID is empty, the first four-dimensional <matrix> tag (the attribute "dim" must be 4) is evaluated and read into memory. If DataID is not empty, the entire file is read until a four-dimensional <matrix> tag is found whose attribute "id " matches DataID (the recognition of the "id " attribute is not case-sensitive). The property DataID is set to
the identification string of the XML data source. The function ReadFromOpenXMLFile returns TRUE if both a valid starting tag <matrix> and a valid end tag </matrix> has been found and the matrix has been updated. In this case the OnChange event is triggered.
Hint 2: |
The XML description of the matrix data has to follow a certain order: the dimensions of the hypercube matrix have to precede all other data. |
|