2022.2

Table Of Contents
The Metadata objects point to an underlying persistent data store. This means that if there are
live references to Metadata objects and the underlying data is destroyed (e.g. a new file is
loaded), the objects would point to invalid data. The effect of calling any object method in these
circumstances is undefined and may result in memory corruption, crash or loss of data.
Methods
Name Description
Job()
Returns the "MetaJob" on the facing page node, which sits at the top of the Metadata tree struc-
ture.
"LoadFromFile(const String Filename )" below Loads a Metadata file from the file system.
"SaveToFile(const String Filename)" below Saves a Metadata file to the file system.
"Export(const String Filename, TExportFormat Format)"
below
Exports the Metadata in a non-native format.
LoadFromFile(const String Filename )
Loads a Metadata file from the file system. This function throws an error when the Metadata file is
invalid or when it can't be found. Note that this error should be caught in a try-catch block.
Filename
Name of the file to load.
Exceptions
l
EOleException: Invalid Metadata file or other error while loading.
SaveToFile(const String Filename)
Saves the current Metadata structure in a file.
Filename
Name of the file to save into. If the file already exists, the file is overwritten and its current contents is
lost.
Export(const String Filename, TExportFormat Format)
Exports the Metadata in a non-native format.
Filename
Name of the file to save to. If the file already exists, the file is overwritten and its current content is
lost.
Page 164