Public Member Functions | Public Attributes | List of all members
mvsim::TParamEntry Struct Reference

#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
 

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

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.

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 42 of file xml_utils.cpp.

Member Data Documentation

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.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41