PLCnext API Documentation 25.0.2.69
|
This pure static class converts values of arbitrary Arp type from and to string, respectively. More...
#include <Convert.hpp>
Public Member Functions | |
Convert (void)=delete | |
Deleted default constructor to make this class pure static. | |
Static Public Member Functions | |
template<class T > | |
static T | ToValue (const char *input) |
Converts the supplied string to a value. More... | |
template<class T > | |
static T | ToValue (const String &input) |
Converts the supplied string to a value. More... | |
template<class T > | |
static String | ToString (const T &value) |
Converts the supplied value to string. More... | |
This pure static class converts values of arbitrary Arp type from and to string, respectively.
All primitive and elementary types, which are defined in Arp root namespace, are supported by this class, as well as all enum types defined in Arp namespace or any sub-namespace.
Furthermore all types providing specialized std::ostream
and std::istream
operators are also supported.
|
inlinestatic |
Converts the supplied value to string.
T | The value type. |
value | The value to convert to string. |
|
inlinestatic |
Converts the supplied string to a value.
T | The desired type of the resulting value. |
input | The input string to convert. |
|
inlinestatic |
Converts the supplied string to a value.
T | The desired type of the resulting value. |
input | The input string to convert. |