OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
detail::EnumSerializer< T > Class Template Reference

#include <EnumSerializer.h>

Public Member Functions

 EnumSerializer ()
 
 EnumSerializer (CaseSensitivity caseSensitivity, std::initializer_list< std::pair< T, const char * > > pairs)
 
bool trySerialize (T src, std::string *dst) const
 
bool tryDeserialize (std::string_view src, T *dst) const
 
bool trySerialize (Flags< T > src, std::string *dst) const
 
bool tryDeserialize (std::string_view src, Flags< T > *dst) const
 
bool isUsableWithFlags () const
 

Private Attributes

EnumSerializationTable _table
 

Constructor & Destructor Documentation

◆ EnumSerializer() [1/2]

template<class T >
detail::EnumSerializer< T >::EnumSerializer ( )
inline

◆ EnumSerializer() [2/2]

template<class T >
detail::EnumSerializer< T >::EnumSerializer ( CaseSensitivity  caseSensitivity,
std::initializer_list< std::pair< T, const char * > >  pairs 
)
inline

Member Function Documentation

◆ isUsableWithFlags()

template<class T >
bool detail::EnumSerializer< T >::isUsableWithFlags ( ) const
inline

◆ tryDeserialize() [1/2]

template<class T >
bool detail::EnumSerializer< T >::tryDeserialize ( std::string_view  src,
Flags< T > *  dst 
) const
inline

◆ tryDeserialize() [2/2]

template<class T >
bool detail::EnumSerializer< T >::tryDeserialize ( std::string_view  src,
T *  dst 
) const
inline

◆ trySerialize() [1/2]

template<class T >
bool detail::EnumSerializer< T >::trySerialize ( Flags< T >  src,
std::string *  dst 
) const
inline

◆ trySerialize() [2/2]

template<class T >
bool detail::EnumSerializer< T >::trySerialize ( src,
std::string *  dst 
) const
inline

Member Data Documentation

◆ _table

template<class T >
EnumSerializationTable detail::EnumSerializer< T >::_table
private

The documentation for this class was generated from the following file: