|
PLCnext API Documentation
20.0.0.24462
|
Adapter class for enums to make them loggable and parsable from e.g. XML files. More...
#include <Enum.hxx>
Public Types | |
| typedef T | Value |
| The adapted enum class type. More... | |
Public Member Functions | |
| Enum (Value value=Value(0)) | |
| Constructs an instace of Enum with the given value. More... | |
| T | ToValue (void) const |
| Converts this instance to the value of its adapted type More... | |
| String | ToString (void) const |
| Converts this instance to its string representation. More... | |
| Enum & | operator= (const Enum &rhs)=default |
| The default assignment operator. More... | |
| Enum & | operator= (Value rhs) |
| The assignment operator for a value of the adapted type. More... | |
| Enum & | operator &= (Enum rhs) |
| The assignment AND operator. More... | |
| Enum & | operator|= (Enum rhs) |
| The assignment OR operator. More... | |
| operator T (void) const | |
| Converts this instance implicitely to the value of its adapted type More... | |
Static Public Member Functions | |
| static bool | TryParse (const char *input, Enum &result) |
| Tries to parse the given input string. More... | |
| static bool | TryParse (const String &input, Enum &result) |
| Tries to parse the given input string. More... | |
| static Enum | Parse (const char *input) |
| Parses the given input string. More... | |
| static Enum | Parse (const String &input) |
| Parses the given input string. More... | |
Adapter class for enums to make them loggable and parsable from e.g. XML files.
| T | The type of the enum. |
The assignment AND operator.
| rhs | The value to AND to this instance. |
The default assignment operator.
| rhs | The value to assign to this instance. |
1.8.13