Parser node class.
More...
Inherits MHAParser::base_t.
Inherited by MHAPlugin::plugin_t< matlab_wrapper_rt_cfg_t >, MHAPlugin::plugin_t< fftfb_plug_t >, MHAPlugin::plugin_t< fftfbpow_t >, MHAPlugin::plugin_t< spec_fader_t >, MHAPlugin::plugin_t< doasvm_feature_extraction_config >, MHAPlugin::plugin_t< wave2spec_t >, MHAPlugin::plugin_t< acwriter_t >, MHAPlugin::plugin_t< lpc_config >, MHAPlugin::plugin_t< MHASignal::async_rmslevel_t >, MHAPlugin::plugin_t< adaptive_feedback_canceller_config >, MHAPlugin::plugin_t< steerbf_config >, MHAPlugin::plugin_t< doasvm_classification_config >, MHAPlugin::plugin_t< MHAWindow::fun_t >, MHAPlugin::plugin_t< acPooling_wave_config >, MHAPlugin::plugin_t< Ci_auralization_cis_cfg >, MHAPlugin::plugin_t< sine_cfg_t >, MHAPlugin::plugin_t< MHA_AC::spectrum_t >, MHAPlugin::plugin_t< rt_nlms_t >, MHAPlugin::plugin_t< level_matching_config_t >, MHAPlugin::plugin_t< scaler_t >, MHAPlugin::plugin_t< hilbert_shifter_t >, MHAPlugin::plugin_t< MHASignal::waveform_t >, MHAPlugin::plugin_t< delaysum_wave_t >, MHAPlugin::plugin_t< combc_t >, MHAPlugin::plugin_t< Ci_simulation_cis_cfg >, MHAPlugin::plugin_t< overlapadd_t >, MHAPlugin::plugin_t< fshift_config_t >, MHAPlugin::plugin_t< db_t >, MHAPlugin::plugin_t< fftfilter_t >, MHAPlugin::plugin_t< dc_t >, MHAPlugin::plugin_t< int >, MHAPlugin::plugin_t< cfg_t >, MHAPlugin::plugin_t< Ci_auralization_ace_cfg >, MHAPlugin::plugin_t< smooth_cepstrum_t >, MHAPlugin::plugin_t< UNIT >, MHAPlugin::plugin_t< MHAFilter::partitioned_convolution_t >, MHAPlugin::plugin_t< route::process_t >, MHAPlugin::plugin_t< lpc_bl_predictor_config >, MHAPlugin::plugin_t< dbasync_t >, MHAPlugin::plugin_t< cpuload_cfg_t >, MHAPlugin::plugin_t< noise_psd_estimator_t >, MHAPlugin::plugin_t< gtfb_simple_rt_t >, MHAPlugin::plugin_t< gtfb_simd_cfg_t >, MHAPlugin::plugin_t< ac2wave_t >, MHAPlugin::plugin_t< Ci_simulation_ace_cfg >, MHAPlugin::plugin_t< MHA_AC::waveform_t >, MHAPlugin::plugin_t< mhachain::plugs_t >, MHAPlugin::plugin_t< gsc_adaptive_stage >, MHAPlugin::plugin_t< char >, MHAPlugin::plugin_t< smoothspec_wrap_t >, MHAPlugin::plugin_t< prediction_error_config >, MHAPlugin::plugin_t< lpc_burglattice_config >, MHAPlugin::plugin_t< gtfb_analyzer_cfg_t >, MHAPlugin::plugin_t< adm_rtconfig_t >, MHAPlugin::plugin_t< example5_t >, MHAPlugin::plugin_t< cohflt_t >, MHAPlugin::plugin_t< acConcat_wave_config >, MHAPlugin::plugin_t< ac2xdf_rt_t >, MHAPlugin::plugin_t< Set_rms_cfg >, MHAPlugin::plugin_t< wavwriter_t >, MHAPlugin::plugin_t< spec2wave_t >, MHAPlugin::plugin_t< rohConfig >, MHAPlugin::plugin_t< delaysum_t >, MHAPlugin::plugin_t< MHASignal::delay_t >, MHAPlugin::plugin_t< acSteer_config >, MHAPlugin::plugin_t< resampling_t >, MHAPlugin::plugin_t< trigger2lsl_rt_t >, MHAPlugin::plugin_t< plingploing_t >, MHAPlugin::plugin_t< analysepath_t >, MHAPlugin::plugin_t< acTransform_wave_config >, MHAPlugin::plugin_t< Get_rms_cfg >, AuditoryProfile::parser_t, AuditoryProfile::parser_t::ear_t, AuditoryProfile::parser_t::fmap_t, DynComp::dc_afterburn_vars_t, MHAFilter::adapt_filter_t, MHAFilter::iir_filter_t, MHAIOJack::io_jack_t, MHAIOJackdb::io_jack_t, MHAIOPortAudio::device_info_t, MHAIOPortAudio::io_portaudio_t, MHAIOPortAudio::stream_info_t, MHAParser::mhaconfig_mon_t, MHAParser::window_t, MHAPlugin::plugin_t< runtime_cfg_t >, MHAPlugin_Split::split_t, alsa_dev_par_parser_t, fw_t, io_alsa_t, io_asterisk_parser_t, io_dummy_t, io_file_t, io_parser_t, io_tcp_parser_t, softclipper_variables_t, testplugin::ac_parser_t, testplugin::config_parser_t, and testplugin::signal_parser_t.
Parser node class.
A parser_t instance is a node in the configuration tree. A parser node can contain any number of other parser_t instances or configuration language variables. These items are inserted into a parser node using the parser_t::insert_item method.
◆ parser_t()
MHAParser::parser_t::parser_t |
( |
const std::string & |
help_text = "" | ) |
|
Construct detached node to be used in the configuration tree.
- Parameters
-
help_text | A text describing this node. E.g. if this node lives at the root of some openMHA plugin, then the help text should describe the functionality of the plugin. |
◆ ~parser_t()
MHAParser::parser_t::~parser_t |
( |
| ) |
|
◆ insert_item()
void MHAParser::parser_t::insert_item |
( |
const std::string & |
n, |
|
|
MHAParser::base_t * |
e |
|
) |
| |
Register a parser item into this sub-parser.
This function registers an item under a given name into this sub-parser and makes it accessible to the parser interface.
- Parameters
-
n | Name of the item in the configuration tree |
e | C++ pointer to the item instance. e can either point to a variable, to a monitor, or to another sub-parser. |
◆ remove_item() [1/2]
void MHAParser::parser_t::remove_item |
( |
const std::string & |
n | ) |
|
Remove an item by name.
If the item does not exist, an error is being reported.
- Parameters
-
n | Name of parser item to be removed from list. |
◆ force_remove_item()
void MHAParser::parser_t::force_remove_item |
( |
const std::string & |
n | ) |
|
Remove an item by name.
Non-existing items are ignored.
- Parameters
-
n | Name of parser item to be removed from list. |
◆ remove_item() [2/2]
void MHAParser::parser_t::remove_item |
( |
const base_t * |
addr | ) |
|
Remove an item by address.
The item belonging to an address is being removed from the list of items.
- Parameters
-
addr | Address of parser item to be removed. |
◆ op_subparse()
std::string MHAParser::parser_t::op_subparse |
( |
expression_t & |
x | ) |
|
|
protectedvirtual |
◆ op_setval()
std::string MHAParser::parser_t::op_setval |
( |
expression_t & |
x | ) |
|
|
protectedvirtual |
◆ op_query()
std::string MHAParser::parser_t::op_query |
( |
expression_t & |
x | ) |
|
|
protectedvirtual |
◆ query_type()
std::string MHAParser::parser_t::query_type |
( |
const std::string & |
| ) |
|
|
protectedvirtual |
◆ query_dump()
std::string MHAParser::parser_t::query_dump |
( |
const std::string & |
| ) |
|
|
protectedvirtual |
◆ query_entries()
std::string MHAParser::parser_t::query_entries |
( |
const std::string & |
| ) |
|
|
protectedvirtual |
◆ query_readfile()
std::string MHAParser::parser_t::query_readfile |
( |
const std::string & |
fname | ) |
|
|
protectedvirtual |
◆ query_savefile()
std::string MHAParser::parser_t::query_savefile |
( |
const std::string & |
fname | ) |
|
|
protectedvirtual |
◆ query_savefile_compact()
std::string MHAParser::parser_t::query_savefile_compact |
( |
const std::string & |
fname | ) |
|
|
protectedvirtual |
◆ query_savemons()
std::string MHAParser::parser_t::query_savemons |
( |
const std::string & |
fname | ) |
|
|
protectedvirtual |
◆ query_val()
std::string MHAParser::parser_t::query_val |
( |
const std::string & |
s | ) |
|
|
protectedvirtual |
◆ query_listids()
std::string MHAParser::parser_t::query_listids |
( |
const std::string & |
s | ) |
|
|
protectedvirtual |
◆ set_id_string()
void MHAParser::parser_t::set_id_string |
( |
const std::string & |
s | ) |
|
|
protected |
◆ has_entry()
bool MHAParser::parser_t::has_entry |
( |
const std::string & |
s | ) |
|
|
protected |
◆ entries
◆ id_string
std::string MHAParser::parser_t::id_string |
|
private |
◆ last_errormsg
std::string MHAParser::parser_t::last_errormsg |
|
private |
The documentation for this class was generated from the following files: