#include <xml_utils.h>
Public Member Functions | |
| void | parse (const std::string &str, const std::string &varName, const char *function_name_context="") const |
| TParamEntry () | |
| TParamEntry (const char *frmt_, void *val_) | |
Public Attributes | |
| const char * | frmt |
| void * | val |
Normal case: sscanf()-like specifiers, and "void*" pointing to corresponding variable type. Special cases:
Definition at line 42 of file xml_utils.h.
| mvsim::TParamEntry::TParamEntry | ( | ) | [inline] |
Definition at line 47 of file xml_utils.h.
| mvsim::TParamEntry::TParamEntry | ( | const char * | frmt_, |
| void * | val_ | ||
| ) | [inline] |
Definition at line 48 of file xml_utils.h.
| void TParamEntry::parse | ( | const std::string & | str, |
| const std::string & | varName, | ||
| const char * | function_name_context = "" |
||
| ) | const |
Tries to parse the given input string according to the expected format, then store the result in "*val"
| std::runtime_error | On format errors. |
Definition at line 28 of file xml_utils.cpp.
| const char* mvsim::TParamEntry::frmt |
Definition at line 44 of file xml_utils.h.
| void* mvsim::TParamEntry::val |
Definition at line 45 of file xml_utils.h.