8#include "Arp/Base/Core/Detail/EnumDictionaryBase.hxx"
11namespace Arp {
namespace Base {
namespace Core
46#include "Arp/Base/Core/Detail/EnumDictionary.ipp"
This class implements an adapter for enums to define the string literals of the enum entries.
Definition: EnumDictionaryBase.hxx:18
std::initializer_list< typename Fields::value_type > InitializerList
The initializer list type of the Fields container.
Definition: EnumDictionaryBase.hxx:24
typename std::underlying_type< T >::type U
The underlying integral type of the enum.
Definition: EnumDictionaryBase.hxx:25
The class implements an adapter for enums to define the string literals of the enum entries.
Definition: EnumDictionary.hxx:19
const char * GetEnumString(T value) const
Returns the string of the specified enum entry.
Definition: EnumDictionary.ipp:82
bool TryGetEnumValue(const char *fieldName, T &value) const
Tries to get the enum value of the specified string.
Definition: EnumDictionary.ipp:122
std::istream & ReadEnumValue(std::istream &is, T &value) const
Tries to return the enum entry of the specified string.
Definition: EnumDictionary.ipp:66
T GetEnumValue(const char *fieldName) const
Returns the value of the specified enum string.
Definition: EnumDictionary.ipp:107
EnumDictionary(const InitializerList &fields)
Constructor passing the enum fields as initializer list.
Definition: EnumDictionary.ipp:20
bool TryGetEnumString(T value, const char *&pResult) const
Returns the string of the specified enum value or nullptr if the value could not be found.
Definition: EnumDictionary.ipp:97
std::ostream & WriteEnumString(std::ostream &os, T value) const
Writes the string of the specified enum value to the given stream.
Definition: EnumDictionary.ipp:40
Root namespace for the PLCnext API