42 friend const char* GetEnumString<>(T key);
43 friend bool TryGetEnumValue<>(
const char* name, T& value);
45 typedef std::map<T, const char*> Dictionary;
60 static const Dictionary Values;
72 return GetEnumString<T>(key);
78 return TryGetEnumValue<T>(name, value);
static bool TryGetEntryValue(const char *name, T &value)
Tries to return the enum entry of the specified string.
Definition: EnumStrings.hxx:76
Adapter class for enums to make them loggable and parsable from e.g. XML files.
Definition: Enum.hxx:23
ARP_CXX_SYMBOL_EXPORT bool TryGetEnumValue(const char *name, T &value)
This helper function tries to return the enum entry of the specified string.
ARP_CXX_SYMBOL_EXPORT const char * GetEnumString(T key)
This helper function returns the string of the specified enum entry.
static const char * GetEntry(T key)
Returns the string of the specified enum entry.
Definition: EnumStrings.hxx:70
The class implements an adapter for enums to define the string literals of the enum entries...
Definition: EnumStrings.hxx:39
Root namespace for the PLCnext API