Package: matlab.io.datastore
Add Folder property support to datastore
matlab.io.datastore.FoldersPropertyProvider
is an abstract mixin class that
adds support for a Folders
property (and thus the
FolderLayout
name-value pair of writeall
) to custom
datastores.
To use this mixin class, you must inherit from the
matlab.io.datastore.FoldersPropertyProvider
class, in addition to the
matlab.io.Datastore
and matlab.io.datastore.FileWritable
classes. Use this syntax as the first few lines in your class definition
file:
classdef MyDatastore < matlab.io.Datastore & .... matlab.io.datastore.FileWritable & ... matlab.io.datastore.FoldersPropertyProvider ... end
Folders
property to your custom datastore, you must:
Inherit from the matlab.io.datastore.FoldersPropertyProvider
class.
Use the populateFoldersFromLocation
method in the datastore
constructor to indicate the location from which to populate the
Folders
property.
The matlab.io.datastore.FoldersPropertyProvider
class is a handle
class.
datastore
| matlab.io.Datastore
| matlab.io.datastore.FileWritable
| writeall