TFELMFrontDatabase
libraryThe TFELMFrontDatabase library provides the
MFrontDatabase class which allows to analyse libraries
generated by MFront. More precisely, this class allows to
retrieve and filters the so-called entry points
generated by MFront in a set of libraries. An entry point
can be associated with a behaviour, a material property or a point-wise
model.
Notes
This class is barely a convenient wrapper around
tfel::system::ExternalLibraryManager. A typical use case ofMFrontDatabaseis to select a behaviour associated with a given material and load it inMTestor analyse it withtfel::system::ExternalLibraryManager.The
mfmexecutable exposes the functionalities ofTFELMFrontDatabaseon the command-line.
The database must be filled by any of the following method:
analyseLibraryanalyseLibrariesanalyseDirectoryanalyseDirectoriesanalyseDirectoriesListedInEnvironmentVariableWhen analysing a directory and a set of directories, the
AnalyseDirectoryOptions structure can be used to customize
the behaviour of the last methods. This structure has the following
members:
ignore_errors: if true, errors are not
blocking. Errors are then reported in the returned data structure of
type AnalyseDirectoryResults. This member is
false by default.library_prefix: this optional string indicates the
expected prefix for libraries. All files that do not start with this
prefix are ignored. If this member is not set, a default value depending
on the operating system is used.library_suffix: this optional string indicates the
expected suffix for libraries. All files that do not start with this
suffix are ignored. If this member is not set, a default value depending
on the operating system is used.The getEntryPoints methods allows to retrieve the entry
points resulting from the analyses described in the previous
section.
MFrontDatabase::Query data structuretype: type of entry points.name_filter: regular expression to filter the entry
points by their names.material_filter: regular expression to filter entry
points by their material.interface_filter: regular expression to filter entry
points by their interface.regular_expression_syntax: this member selects the
syntax used for filters based on regular expression.The MFrontDatabase::EntryPoint structure contains: