Keyword list class.
More...
|
typedef std::vector< std::string >::size_type | size_t |
|
Keyword list class.
The stucture keyword_list_t defines a keyword list (vector of strings) with an index into the list. Used as MHAParser::kw_t, it can be used to access a set of valid keywords through the parser (i.e. one of "pear apple banana").
◆ size_t
◆ keyword_list_t()
MHAParser::keyword_list_t::keyword_list_t |
( |
| ) |
|
◆ set_value()
void MHAParser::keyword_list_t::set_value |
( |
const std::string & |
s | ) |
|
Select a value from keyword list.
This function selects a value from the keyword list. The index is set to the last matching entry.
- Parameters
-
◆ set_entries()
void MHAParser::keyword_list_t::set_entries |
( |
const std::string & |
s | ) |
|
Set keyword list entries.
With this function, the keyword list can be set from a space separated string list.
- Parameters
-
s | Space separated entry list. |
◆ get_value()
const std::string & MHAParser::keyword_list_t::get_value |
( |
| ) |
const |
◆ get_entries()
const std::vector< std::string > & MHAParser::keyword_list_t::get_entries |
( |
| ) |
const |
◆ get_index()
Return index of selected value.
◆ set_index()
void MHAParser::keyword_list_t::set_index |
( |
unsigned int |
idx | ) |
|
◆ validate()
void MHAParser::keyword_list_t::validate |
( |
| ) |
const |
Check if index of selected value is valid.
◆ add_entry()
void MHAParser::keyword_list_t::add_entry |
( |
const std::string & |
en | ) |
|
|
inline |
◆ index
size_t MHAParser::keyword_list_t::index |
|
private |
◆ entries
std::vector<std::string> MHAParser::keyword_list_t::entries |
|
private |
◆ empty_string
std::string MHAParser::keyword_list_t::empty_string |
|
private |
The documentation for this class was generated from the following files: