OpenWalnut  1.5.0dev
Public Member Functions | List of all members
PROPERTY_TYPE_HELPER::WStringConversion< WPVBaseTypes::PV_SELECTION > Class Reference

Class helping to create a new instance of the property content from an old one. More...

#include <WPropertyTypes.h>

Public Member Functions

WPVBaseTypes::PV_SELECTION create (const WPVBaseTypes::PV_SELECTION &old, const std::string str)
 Creates a new instance of the type from a given string. More...
 
std::string asString (const WPVBaseTypes::PV_SELECTION &v)
 Creates a string from the specified value. More...
 

Detailed Description

Class helping to create a new instance of the property content from an old one.

Selections need this special care since they contain not serializable content which needs to be acquired from its predecessor instance.

Definition at line 467 of file WPropertyTypes.h.

Member Function Documentation

◆ asString()

Creates a string from the specified value.

Parameters
vthe value to convert
Returns
the string representation

Definition at line 490 of file WPropertyTypes.h.

References string_utils::toString().

+ Here is the call graph for this function:

◆ create()

Creates a new instance of the type from a given string.

Some classes need a predecessor which is also specified here.

Parameters
oldthe old value
strthe new value as string
Returns
the new instance

Definition at line 478 of file WPropertyTypes.h.

References WItemSelector::newSelector().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: