Public Member Functions | Public Attributes
mvsim::TParamEntry Struct Reference

#include <xml_utils.h>

List of all members.

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

Detailed Description

Normal case: sscanf()-like specifiers, and "void*" pointing to corresponding variable type. Special cases:

Definition at line 42 of file xml_utils.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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"

Exceptions:
std::runtime_errorOn format errors.

Definition at line 28 of file xml_utils.cpp.


Member Data Documentation

Definition at line 44 of file xml_utils.h.

Definition at line 45 of file xml_utils.h.


The documentation for this struct was generated from the following files:


mvsim
Author(s):
autogenerated on Thu Sep 7 2017 09:27:49