PLCnext API Documentation 25.0.2.69
|
Classes | |
class | Arp::Base::Core::Enum< T > |
Adapter class for enums to make them loggable and parsable from e.g. XML files. More... | |
Functions | |
template<class T > | |
Enum< T > | Arp::Base::Core::make_enum (T value) |
Global make function to adapt any enum class by class Enum. More... | |
Arp::Base::Core::Enum< T >::Enum (Value initialValue=Zero) | |
Constructs an instance of Enum with the given value. More... | |
static bool | Arp::Base::Core::Enum< T >::TryParse (const String &input, T &result) |
Tries to parse the given input string. More... | |
static bool | Arp::Base::Core::Enum< T >::TryParse (const String &input, Enum &result) |
Tries to parse the given input string. More... | |
static bool | Arp::Base::Core::Enum< T >::TryParse (const char *input, Enum &result) |
Tries to parse the given input string. More... | |
static bool | Arp::Base::Core::Enum< T >::TryParse (const char *input, T &result) |
Tries to parse the given input string. More... | |
static Enum | Arp::Base::Core::Enum< T >::Parse (const String &input) |
Parses the given input string. More... | |
static Enum | Arp::Base::Core::Enum< T >::Parse (const char *input) |
Parses the given input string. More... | |
Arp::Base::Core::Enum< T >::operator T (void) const | |
Converts this instance implicitly to the value of its adapted type | |
Enum & | Arp::Base::Core::Enum< T >::operator= (Value arg) |
The assignment operator for a value of the adapted type. More... | |
Enum & | Arp::Base::Core::Enum< T >::operator&= (Enum rhs) |
The assignment AND operator. More... | |
Enum & | Arp::Base::Core::Enum< T >::operator|= (Enum rhs) |
The assignment OR operator. More... | |
T | Arp::Base::Core::Enum< T >::GetValue (void) const |
Gets the adapted enum value. More... | |
bool | Arp::Base::Core::Enum< T >::HasFlag (Value flag) |
Determines if this enum value has the supplied flag set. More... | |
bool | Arp::Base::Core::Enum< T >::HasAnyFlag (Value flags) |
Determines if this enum value has any of the the supplied flags set. More... | |
bool | Arp::Base::Core::Enum< T >::HasAllFlags (Value flags) |
Determines if this enum value has all of the supplied flag set. More... | |
U | Arp::Base::Core::Enum< T >::ToUnderlyingType (void) const |
Converts this instance to the underlying integral type of its adapted enum type More... | |
String | Arp::Base::Core::Enum< T >::ToString (bool throwIfInvalid=true) const |
Converts this instance to its string representation. More... | |
|
inline |
Constructs an instance of Enum with the given value.
initialValue | The enum value to initialize this instance with. |
|
inline |
Gets the adapted enum value.
|
inline |
Determines if this enum value has all of the supplied flag set.
flags | The flags to test for. |
true
if all of the flags are set, otherwise false
.
|
inline |
Determines if this enum value has any of the the supplied flags set.
flags | The flags to test for. |
true
if any of the flags is set, otherwise false
.
|
inline |
Determines if this enum value has the supplied flag set.
flag | The flag to test for. |
true
if the flag is set, otherwise false
.
|
inline |
|
inline |
The assignment AND operator.
rhs | The value to AND to this instance. |
|
inline |
The assignment operator for a value of the adapted type.
arg | The value to assign to this instance. |
|
inline |
The assignment OR operator.
rhs | The value to OR to this instance. |
|
inlinestatic |
|
inlinestatic |
|
inline |
Converts this instance to its string representation.
throwIfInvalid | If true an exception is thrown if the enum value is invalid, otherwise the number is converted to string. |
|
inline |
Converts this instance to the underlying integral type of its adapted enum type
|
inlinestatic |
Tries to parse the given input string.
input | The input string to parse. |
result | The resulting enum value. |
true
on success, otherwise false
.
|
inlinestatic |
Tries to parse the given input string.
input | The input string to parse. |
result | The resulting Enum. |
true
on success, otherwise false
.
|
inlinestatic |
Tries to parse the given input string.
input | The input string to parse. |
result | The resulting enum value. |
true
on success, otherwise false
.
|
inlinestatic |
Tries to parse the given input string.
input | The input string to parse. |
result | The resulting Enum. |
true
on success, otherwise false
.