MXADataModel Documentation
APIs for the Programmer
 
Example 1 - Basic model building and storage of data.
This example illustrates some basic concepts for the MXA Data Model. The code walks through how to create a Data Model through code, list the data dimensions and data records that have been created, export the model to an XML file and then store some auto generated data into the HDF5 file. It also shows how to retrieve some data stored in the User Defined Meta Data Section.
Example 2 - Retrieving data from an HDF5 based MXA Datafile
This example shows how to use some of the existing MXA data classes to retrieve data from an HDF5 data file. The same model layout as in example 1 is utilized.
Support File Example
This short example shows how to store a file from the local filesystem as a 'Support' file in the HDF5 based MXA data file. The example program generates a tiff image and an example data model. A reference to the tiff image is then added to the data model and then the data model is saved to the HDF5 based mxa data file. You can use any number of utilities, including the MXADataViewer to view the file and it's contents.
DataWrapper Example
This example shows how to instantiate and use the MXAArrayTemplate classes located in the DataWrapper folder. These classes can be used for easier storage and retrieval of data from HDF5 files using the H5Lite methods.
Data Import Example
This example shows how to create a 'ImportDelegate' class to handle specialized importing code. The top level entry point is the 'main.cpp' source file. Supporting classes are the ExampleImportDelegateFactory and the ExampleImportDelegate. This example also shows off the Factory design pattern that is used when creating your own importers. The example generates a number of binary data files that are then used as input data sources for the import code.