![]() |
zeep::value_serializer<T, std::enable_if_t< std::is_enum_v< T > >> — value_serializer for enum values
// In header: <zeep/value-serializer.hpp> template<typename T> struct value_serializer<, > { // types typedef ; typedef ; // public static functions (, ); (); value_serializer & ( = ); (); (); (); (); // public member functions value_serializer & (, ); value_serializer & (, ); // public data members m_type_name; m_value_map; };
This class is used to (de-)serialize enum values. To map enum values to a string you should use the singleton instance accessible through instance() and then call the operator() members assinging each of the enum values with their respective string.
A recent addition is the init() call to initialize the instance
value_serializer
public static functions( name, values);Initialize a new instance of
value_serializer
for this enum, with name and a set of name/value pairs. ( values);Initialize a new anonymous instance of
value_serializer
for this enum with a set of name/value pairs. value_serializer & ( name = );
();
( value);
( value);
();
value_serializer
public member functionsvalue_serializer & ( v, name);
value_serializer & ( name, v);