|
| window_t (const std::string &help="Window type configuration.") |
| Constructor to create parser class. More...
|
|
MHAWindow::base_t | get_window (unsigned int len) const |
| Create a window instance, use default parameters. More...
|
|
MHAWindow::base_t | get_window (unsigned int len, float xmin) const |
| Create a window instance. More...
|
|
MHAWindow::base_t | get_window (unsigned int len, float xmin, float xmax) const |
| Create a window instance. More...
|
|
MHAWindow::base_t | get_window (unsigned int len, float xmin, float xmax, bool minincluded) const |
| Create a window instance. More...
|
|
MHAWindow::base_t | get_window (unsigned int len, float xmin, float xmax, bool minincluded, bool maxincluded) const |
| Create a window instance. More...
|
|
MHAParser::window_t::wtype_t | get_type () const |
| Return currently selected window type. More...
|
|
void | setlock (bool b) |
|
| parser_t (const std::string &help_text="") |
| Construct detached node to be used in the configuration tree. More...
|
|
| ~parser_t () |
|
void | insert_item (const std::string &, base_t *) |
| Register a parser item into this sub-parser. More...
|
|
void | remove_item (const std::string &) |
| Remove an item by name. More...
|
|
void | force_remove_item (const std::string &) |
| Remove an item by name. More...
|
|
void | remove_item (const base_t *) |
| Remove an item by address. More...
|
|
| 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_t & | operator= (const base_t &)=default |
|
| base_t (base_t &&)=delete |
|
base_t & | operator= (base_t &&)=delete |
|
virtual | ~base_t () |
|
virtual std::string | parse (const std::string &) |
| Causes this node to process a command in the openMHA configuration language. More...
|
|
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_perm (const std::string &) |
|
virtual std::string | query_range (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...
|
|
MHA configuration interface for a window function generator.
This class implements a configuration interface (sub-parser) for window type selection and user-defined window type. It provides member functions to generate an instance of MHAWindow::base_t based on the values provided by the configuration interface.
The configuration interface is derived from MHAParser::parser_t and can thus be inserted into the configuration tree using the insert_item() method of the parent parser.
If one of the pre-defined window types is used, then the window is generated using the MHAWindow::fun_t class constructor; for the user-defined type the values from the "user" variable are copied.