OpenWalnut
1.5.0dev
|
Conversion class to convert a string to a given target type. More...
#include <WStringUtils.h>
Static Public Member Functions | |
static Target | fromString (const std::string &from) |
Convert a given string to the target type. More... | |
Conversion class to convert a string to a given target type.
We place this in separate classes as we are not allowed to specialize function templates. But we need specializations for certain cases.
Target | target type |
Definition at line 67 of file WStringUtils.h.
|
inlinestatic |
Convert a given string to the target type.
If this fails, a exception is thrown.
WTypeMismatch | if source string cannot be converted to target type value. |
from | source string |
Definition at line 78 of file WStringUtils.h.
Referenced by string_utils::fromString().