The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Name space for the openMHA-Parser configuration language. More...
Namespaces | |
StrCnv | |
String converter namespace. | |
Classes | |
class | keyword_list_t |
Keyword list class. More... | |
class | expression_t |
class | entry_t |
class | base_t |
Base class for all parser items. More... | |
class | parser_t |
Parser node class. More... | |
class | c_ifc_parser_t |
class | monitor_t |
Base class for monitors and variable nodes. More... | |
class | variable_t |
Base class for variable nodes. More... | |
class | range_var_t |
Base class for all variables with a numeric value range. More... | |
class | kw_t |
Variable with keyword list value. More... | |
class | string_t |
Variable with a string value. More... | |
class | vstring_t |
Vector variable with string values. More... | |
class | bool_t |
Variable with a boolean value ("yes"/"no") More... | |
class | int_t |
Variable with integer value. More... | |
class | float_t |
Variable with float value. More... | |
class | complex_t |
Variable with complex value. More... | |
class | vint_t |
Variable with vector<int> value. More... | |
class | vfloat_t |
Vector variable with float value. More... | |
class | vcomplex_t |
Vector variable with complex value. More... | |
class | mint_t |
Matrix variable with int value. More... | |
class | mfloat_t |
Matrix variable with float value. More... | |
class | mcomplex_t |
Matrix variable with complex value. More... | |
class | int_mon_t |
Monitor variable with int value. More... | |
class | bool_mon_t |
Monitor with string value. More... | |
class | string_mon_t |
Monitor with string value. More... | |
class | vstring_mon_t |
Vector of monitors with string value. More... | |
class | vint_mon_t |
Vector of ints monitor. More... | |
class | mint_mon_t |
Matrix of ints monitor. More... | |
class | vfloat_mon_t |
Vector of floats monitor. More... | |
class | mfloat_mon_t |
Matrix of floats monitor. More... | |
class | float_mon_t |
Monitor with float value. More... | |
class | complex_mon_t |
Monitor with complex value. More... | |
class | vcomplex_mon_t |
Monitor with vector of complex values. More... | |
class | mcomplex_mon_t |
Matrix of complex numbers monitor. More... | |
class | commit_t |
Parser variable with event-emission functionality. More... | |
class | mhaconfig_mon_t |
class | window_t |
MHA configuration interface for a window function generator. More... | |
class | mhapluginloader_t |
Class to create a plugin loader in a parser, including the load logic. More... | |
Typedefs | |
typedef std::string(base_t::* | opact_t) (expression_t &) |
typedef std::string(base_t::* | query_t) (const std::string &) |
typedef std::map< std::string, opact_t > | opact_map_t |
typedef std::map< std::string, query_t > | query_map_t |
typedef std::list< entry_t > | entry_map_t |
typedef int(* | c_parse_cmd_t) (void *, const char *, char *, unsigned int) |
typedef const char *(* | c_parse_err_t) (void *, int) |
Functions | |
int | get_precision () |
std::string | commentate (const std::string &s) |
void | trim (std::string &s) |
std::string | cfg_dump (base_t *, const std::string &) |
std::string | cfg_dump_short (base_t *, const std::string &) |
std::string | all_dump (base_t *, const std::string &) |
std::string | mon_dump (base_t *, const std::string &) |
std::string | all_ids (base_t *, const std::string &, const std::string &="") |
void | strreplace (std::string &, const std::string &, const std::string &) |
string replace function More... | |
void | envreplace (std::string &s) |
Name space for the openMHA-Parser configuration language.
This namespace contains all classes which are needed for the implementation of the openMHA configuration language. For details on the script language itself please see section The openMHA configuration language.
Members can be inserted into the configuration namespace by using MHAParser::insert_item() or the insert_member() macro.
typedef std::string(base_t::* MHAParser::opact_t) (expression_t &) |
typedef std::string(base_t::* MHAParser::query_t) (const std::string &) |
typedef std::map<std::string,opact_t> MHAParser::opact_map_t |
typedef std::map<std::string,query_t> MHAParser::query_map_t |
typedef std::list<entry_t> MHAParser::entry_map_t |
typedef int(* MHAParser::c_parse_cmd_t) (void *, const char *, char *, unsigned int) |
typedef const char*(* MHAParser::c_parse_err_t) (void *, int) |
int MHAParser::get_precision | ( | ) |
std::string MHAParser::commentate | ( | const std::string & | s | ) |
void MHAParser::trim | ( | std::string & | s | ) |
std::string MHAParser::cfg_dump | ( | base_t * | p, |
const std::string & | pref | ||
) |
std::string MHAParser::cfg_dump_short | ( | base_t * | p, |
const std::string & | pref | ||
) |
std::string MHAParser::all_dump | ( | base_t * | p, |
const std::string & | pref | ||
) |
std::string MHAParser::mon_dump | ( | base_t * | p, |
const std::string & | pref | ||
) |
std::string MHAParser::all_ids | ( | base_t * | p, |
const std::string & | pref, | ||
const std::string & | id = "" |
||
) |
void MHAParser::strreplace | ( | std::string & | s, |
const std::string & | arg, | ||
const std::string & | rep | ||
) |
string replace function
s | target string |
arg | search pattern |
rep | replace pattern |
void MHAParser::envreplace | ( | std::string & | s | ) |