OpenWalnut
1.5.0dev
|
Class helping to create a new instance of the property content from an old one. More...
#include <WPropertyTypes.h>
Public Member Functions | |
T | create (const T &, const std::string str) |
Creates a new instance of the type from a given string. More... | |
std::string | asString (const T &v) |
Creates a string from the specified value. More... | |
Class helping to create a new instance of the property content from an old one.
This might be needed by some types (some need to have a predecessor for creation). You only need to specialize this class for types not allowing the direct use of string_utils::fromString
Definition at line 326 of file WPropertyTypes.h.
|
inline |
Creates a string from the specified value.
v | the value to convert |
Definition at line 348 of file WPropertyTypes.h.
References string_utils::toString().
Referenced by WPropertyVariable< T >::getAsString().
|
inline |
Creates a new instance of the type from a given string.
Some classes need a predecessor which is also specified here.
str | the new value as string |
Definition at line 336 of file WPropertyTypes.h.
Referenced by WPropertyVariable< T >::setAsString().