![]() |
The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Classes | |
| class | mha_stash_environment_variable_t |
| This class changes the value of an environment variable when constructed and restores the original state of the environment variable when destroyed. More... | |
| class | dynamiclib_t |
| Wrapper class around a shared library. More... | |
| class | pluginlib_t |
| Specialisation of dynamiclib_t for mha plugin libraries. More... | |
Macros | |
| #define | mha_loadlib(x) dlopen(x,RTLD_NOW) |
| #define | mha_freelib(x) dlclose(x) |
| #define | mha_freelib_success(x) (x == 0) |
| #define | mha_getlibfun(h, x) x ## _cb = (x ## _t)dlsym(h,#x) |
| #define | mha_getlibfun_checked(h, x) x ## _cb = (x ## _t)dlsym(h,#x);if(! x ## _cb) throw MHA_Error(__FILE__,__LINE__,"Function " #x " is undefined.") |
| #define | mha_loadlib_error(x) dlerror() |
| #define | mha_lib_extension ".so" |
| #define | mha_msleep(milliseconds) usleep((milliseconds)*1000) |
| #define | FMTsz "%zu" |
| printf modifier to print integers of type size_t More... | |
| #define | MHA_RESOLVE(h, t) t ## _cb = (t ## _t)(h->resolve(#t)) |
| #define | MHA_RESOLVE_CHECKED(h, t) t ## _cb = (t ## _t)(h->resolve_checked(#t)) |
Typedefs | |
| typedef void * | mha_libhandle_t |
Functions | |
| std::string | mha_getenv (const std::string &envvar) |
| Get value of environment variable. More... | |
| bool | mha_hasenv (const std::string &envvar) |
| Checks if environment variable exists. More... | |
| int | mha_setenv (const std::string &envvar, const std::string &value) |
| Set value of environment variable. More... | |
| void | mha_delenv (const std::string &envvar) |
| Deletes environment variable from process environment if it exists. More... | |
| std::list< std::string > | mha_library_paths () |
| std::list< std::string > | list_dir (const std::string &path, const std::string &pattern) |
| void | mha_hton (float *data, unsigned int len) |
| void | mha_ntoh (float *data, unsigned int len) |
| void | mha_hton (uint32_t *data, unsigned int len) |
| void | mha_ntoh (uint32_t *data, unsigned int len) |
| void | mha_hton (int32_t *data, unsigned int len) |
| void | mha_ntoh (int32_t *data, unsigned int len) |
| #define mha_loadlib | ( | x | ) | dlopen(x,RTLD_NOW) |
| #define mha_freelib | ( | x | ) | dlclose(x) |
| #define mha_freelib_success | ( | x | ) | (x == 0) |
| #define mha_getlibfun | ( | h, | |
| x | |||
| ) | x ## _cb = (x ## _t)dlsym(h,#x) |
| #define mha_getlibfun_checked | ( | h, | |
| x | |||
| ) | x ## _cb = (x ## _t)dlsym(h,#x);if(! x ## _cb) throw MHA_Error(__FILE__,__LINE__,"Function " #x " is undefined.") |
| #define mha_loadlib_error | ( | x | ) | dlerror() |
| #define mha_lib_extension ".so" |
| #define mha_msleep | ( | milliseconds | ) | usleep((milliseconds)*1000) |
| #define FMTsz "%zu" |
printf modifier to print integers of type size_t
| #define MHA_RESOLVE | ( | h, | |
| t | |||
| ) | t ## _cb = (t ## _t)(h->resolve(#t)) |
| #define MHA_RESOLVE_CHECKED | ( | h, | |
| t | |||
| ) | t ## _cb = (t ## _t)(h->resolve_checked(#t)) |
| typedef void* mha_libhandle_t |
| std::string mha_getenv | ( | const std::string & | envvar | ) |
Get value of environment variable.
| envvar | Name of environment variable to retrieve |
| bool mha_hasenv | ( | const std::string & | envvar | ) |
Checks if environment variable exists.
| envvar | Name of environment variable to check |
| int mha_setenv | ( | const std::string & | envvar, |
| const std::string & | value | ||
| ) |
Set value of environment variable.
| envvar | Name of environment variable to set |
| value | New content for environment variable |
| void mha_delenv | ( | const std::string & | envvar | ) |
Deletes environment variable from process environment if it exists.
| envvar | Name of environment variable to delete |
| std::list<std::string> mha_library_paths | ( | ) |
| std::list<std::string> list_dir | ( | const std::string & | path, |
| const std::string & | pattern | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |