The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Utility class connecting a user_config_t instance to its corresponding configuration parser. More...
Public Member Functions | |
callback (matlab_wrapper_t *parent_, user_config_t *user_config_, MHAParser::mfloat_t *var_) | |
Ctor. More... | |
void | on_writeaccess () |
Write access callback. More... | |
Private Attributes | |
user_config_t * | user_config |
Ptr to user_config_t. More... | |
MHAParser::mfloat_t * | var |
Ptr to parser. More... | |
matlab_wrapper_t * | parent |
Ptr to parent plugin. More... | |
Utility class connecting a user_config_t instance to its corresponding configuration parser.
Provides the callback. Every time the a user defined configuration parser is changed, this class makes sure that the corresponding 'matlab-side' struct is also changed and a new real time config is created and pushed.
matlab_wrapper::callback::callback | ( | matlab_wrapper_t * | parent_, |
user_config_t * | user_config_, | ||
MHAParser::mfloat_t * | var_ | ||
) |
Ctor.
parent_ | Ptr to the parent parser. Used to signal finished change. |
user_config_ | Ptr to user_config_t struct holding the 'matlab side' of the configuration variable |
var_ | Ptr to the configuration parser corresponding to user_config_ |
void matlab_wrapper::callback::on_writeaccess | ( | ) |
Write access callback.
To be called on every writeaccess of *var. Synchronises *var and *user_config.
|
private |
Ptr to user_config_t.
|
private |
Ptr to parser.
|
private |
Ptr to parent plugin.