The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
plug_wrapper Class Reference
Inheritance diagram for plug_wrapper:
Inheritance graph

Public Member Functions

 plug_wrapper (MHA_AC::algo_comm_t &iac, const std::string &libname)
 
virtual ~plug_wrapper ()=default
 
virtual std::vector< std::string > get_categories ()
 
virtual std::string parse (const std::string &str)
 
virtual bool has_parser ()
 
virtual std::string get_documentation ()
 
virtual bool has_process (mha_domain_t in, mha_domain_t out)
 
- Public Member Functions inherited from plug_wrapperI
 plug_wrapperI ()
 
virtual ~plug_wrapperI ()=default
 
- Public Member Functions inherited from MHAParser::base_t
 base_t (const std::string &)
 Constructor for base class of all parser nodes. More...
 
 base_t (const base_t &)
 Copy constructor for base_t. More...
 
base_toperator= (const base_t &)=default
 
 base_t (base_t &&)=delete
 
base_toperator= (base_t &&)=delete
 
virtual ~base_t ()
 
virtual void parse (const char *, char *, unsigned int)
 This function parses a command and writes the parsing result into a C character array. More...
 
virtual void parse (const std::vector< std::string > &, std::vector< std::string > &)
 
virtual std::string query_dump (const std::string &)
 
virtual std::string query_entries (const std::string &)
 
virtual std::string query_perm (const std::string &)
 
virtual std::string query_range (const std::string &)
 
virtual std::string query_type (const std::string &)
 
virtual std::string query_val (const std::string &)
 
virtual std::string query_readfile (const std::string &)
 
virtual std::string query_savefile (const std::string &)
 
virtual std::string query_savefile_compact (const std::string &)
 
virtual std::string query_savemons (const std::string &)
 
virtual std::string query_listids (const std::string &)
 
std::string query_version (const std::string &)
 
std::string query_id (const std::string &)
 
std::string query_subst (const std::string &)
 
std::string query_addsubst (const std::string &)
 
std::string query_help (const std::string &)
 
std::string query_cmds (const std::string &)
 
void set_node_id (const std::string &)
 Set the identification string of this parser node. More...
 
void set_help (const std::string &)
 Set the help comment of a variable or parser. More...
 
void add_parent_on_insert (parser_t *, std::string)
 
void rm_parent_on_remove (parser_t *)
 
const std::string & fullname () const
 Return the full dot-separated path name of this parser node in the openMHA configuration tree. More...
 

Additional Inherited Members

- Public Attributes inherited from MHAParser::base_t
MHAEvents::emitter_t writeaccess
 Event emitted on write access. More...
 
MHAEvents::emitter_t valuechanged
 Event emitted if the value has changed. More...
 
MHAEvents::emitter_t readaccess
 Event emitted on read access. More...
 
MHAEvents::emitter_t prereadaccess
 Event emitted on read access, before the data field is accessed. More...
 
- Protected Member Functions inherited from MHAParser::base_t
void activate_query (const std::string &, query_t)
 
void notify ()
 
- Protected Attributes inherited from MHAParser::base_t
query_map_t queries
 
bool data_is_initialized
 
- Private Member Functions inherited from PluginLoader::mhapluginloader_t
 mhapluginloader_t (MHA_AC::algo_comm_t &iac, const std::string &libname, bool check_version=true)
 Loads and initializes mha plugin and establishes interface. More...
 
 ~mhapluginloader_t () throw ()
 
bool has_process (mha_domain_t in, mha_domain_t out) const
 
bool has_parser () const
 
mha_domain_t input_domain () const
 
mha_domain_t output_domain () const
 
void prepare (mhaconfig_t &) override
 
void release () override
 
void process (mha_wave_t *, mha_wave_t **) override
 
void process (mha_spec_t *, mha_spec_t **) override
 
void process (mha_wave_t *, mha_spec_t **) override
 
void process (mha_spec_t *, mha_wave_t **) override
 
std::string getfullname () const
 
std::string get_documentation () const
 
std::vector< std::string > get_categories () const
 
bool is_prepared () const
 
void test_error ()
 
void test_version ()
 
void mha_test_struct_size (unsigned int s)
 
void resolve_and_init ()
 
- Private Member Functions inherited from PluginLoader::config_file_splitter_t
 config_file_splitter_t (const std::string &name)
 
const std::string & get_configname () const
 
const std::string & get_libname () const
 
const std::string & get_origname () const
 
const std::string & get_configfile () const
 
- Private Member Functions inherited from MHAParser::c_ifc_parser_t
 c_ifc_parser_t (const std::string &modulename_)
 
 ~c_ifc_parser_t ()
 
void set_parse_cb (c_parse_cmd_t, c_parse_err_t, void *)
 
std::string op_subparse (MHAParser::expression_t &)
 
std::string op_setval (MHAParser::expression_t &)
 
std::string op_query (MHAParser::expression_t &)
 
- Private Member Functions inherited from MHAParser::base_t
 base_t (const std::string &)
 Constructor for base class of all parser nodes. More...
 
 base_t (const base_t &)
 Copy constructor for base_t. More...
 
base_toperator= (const base_t &)=default
 
 base_t (base_t &&)=delete
 
base_toperator= (base_t &&)=delete
 
virtual ~base_t ()
 
virtual void parse (const char *, char *, unsigned int)
 This function parses a command and writes the parsing result into a C character array. More...
 
virtual void parse (const std::vector< std::string > &, std::vector< std::string > &)
 
virtual std::string query_dump (const std::string &)
 
virtual std::string query_entries (const std::string &)
 
virtual std::string query_perm (const std::string &)
 
virtual std::string query_range (const std::string &)
 
virtual std::string query_type (const std::string &)
 
virtual std::string query_val (const std::string &)
 
virtual std::string query_readfile (const std::string &)
 
virtual std::string query_savefile (const std::string &)
 
virtual std::string query_savefile_compact (const std::string &)
 
virtual std::string query_savemons (const std::string &)
 
virtual std::string query_listids (const std::string &)
 
std::string query_version (const std::string &)
 
std::string query_id (const std::string &)
 
std::string query_subst (const std::string &)
 
std::string query_addsubst (const std::string &)
 
std::string query_help (const std::string &)
 
std::string query_cmds (const std::string &)
 
void set_node_id (const std::string &)
 Set the identification string of this parser node. More...
 
void set_help (const std::string &)
 Set the help comment of a variable or parser. More...
 
void add_parent_on_insert (parser_t *, std::string)
 
void rm_parent_on_remove (parser_t *)
 
const std::string & fullname () const
 Return the full dot-separated path name of this parser node in the openMHA configuration tree. More...
 
void activate_query (const std::string &, query_t)
 
void notify ()
 
- Private Member Functions inherited from PluginLoader::fourway_processor_t
virtual ~fourway_processor_t ()
 Classes with virtual methods need virtual destructor. More...
 
- Private Attributes inherited from PluginLoader::mhapluginloader_t
int lib_err
 
MHA_AC::algo_comm_tac
 
pluginlib_t lib_handle
 
void * lib_data
 
MHAGetVersion_t MHAGetVersion_cb
 
MHAInit_t MHAInit_cb
 
MHADestroy_t MHADestroy_cb
 
MHAPrepare_t MHAPrepare_cb
 
MHARelease_t MHARelease_cb
 
MHAProc_wave2wave_t MHAProc_wave2wave_cb
 
MHAProc_spec2spec_t MHAProc_spec2spec_cb
 
MHAProc_wave2spec_t MHAProc_wave2spec_cb
 
MHAProc_spec2wave_t MHAProc_spec2wave_cb
 
MHASet_t MHASet_cb
 
MHASetcpp_t MHASetcpp_cb
 
MHAStrError_t MHAStrError_cb
 
mhaconfig_t cf_input
 
mhaconfig_t cf_output
 
std::string plugin_documentation
 
std::vector< std::string > plugin_categories
 
bool b_check_version
 
bool b_is_prepared
 
- Private Attributes inherited from MHAParser::base_t
MHAEvents::emitter_t writeaccess
 Event emitted on write access. More...
 
MHAEvents::emitter_t valuechanged
 Event emitted if the value has changed. More...
 
MHAEvents::emitter_t readaccess
 Event emitted on read access. More...
 
MHAEvents::emitter_t prereadaccess
 Event emitted on read access, before the data field is accessed. More...
 
query_map_t queries
 
bool data_is_initialized
 

Constructor & Destructor Documentation

◆ plug_wrapper()

plug_wrapper::plug_wrapper ( MHA_AC::algo_comm_t iac,
const std::string &  libname 
)
inline

◆ ~plug_wrapper()

virtual plug_wrapper::~plug_wrapper ( )
virtualdefault

Member Function Documentation

◆ get_categories()

virtual std::vector<std::string> plug_wrapper::get_categories ( )
inlinevirtual

Implements plug_wrapperI.

◆ parse()

virtual std::string plug_wrapper::parse ( const std::string &  str)
inlinevirtual

Reimplemented from PluginLoader::mhapluginloader_t.

◆ has_parser()

virtual bool plug_wrapper::has_parser ( )
inlinevirtual

Implements plug_wrapperI.

◆ get_documentation()

virtual std::string plug_wrapper::get_documentation ( )
inlinevirtual

Implements plug_wrapperI.

◆ has_process()

virtual bool plug_wrapper::has_process ( mha_domain_t  in,
mha_domain_t  out 
)
inlinevirtual

Implements plug_wrapperI.


The documentation for this class was generated from the following file: