The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
openMHA Plugins that should use the openMHA configuration language for their configuration have to be implemented in C++ and need to include mha_parser.hh.
openMHA Plugins that should use the openMHA configuration language for their configuration have to be implemented in C++ and need to include mha_parser.hh.
All required classes and functions for parser access are declared in the namespace MHAParser. The plugin class should be derived from the class MHAParser::parser_t (or MHAPlugin::plugin_t), which symbolises a sub-parser node in the openMHA script hierarchy. Variables of many types can be registered to the sub-parser node by calling the member function insert_item.
The openMHA Plugin template class MHAPlugin::plugin_t together with the Plugin macro MHAPLUGIN_CALLBACKS provide the callback mappings and correct inheritance. If your plugin is based on that template class, you simply have to use the insert_item command to give access to your variables, everything else is managed internally.
A complete list of all openMHA script items is given in the description of the MHAParser namespace.