libzeep

PrevUpHomeNext

Struct template type_serializer

zeep::xml::type_serializer

Synopsis

// In header: <zeep/xml/serialize.hpp>

template<typename T, typename  = void> 
struct type_serializer {
  // types
  typedef typename std::remove_const_t< typename std::remove_reference_t< T > > value_type;           
  typedef value_serializer< value_type >                                        value_serializer_type;

  // public static functions
  static constexpr const char * type_name();
  static std::string serialize_value(const T &);
  static T deserialize_value(const std::string &);
  static void serialize_child(element &, const char *, const value_type &);
  static void deserialize_child(const element &, const char *, value_type &);
  static element schema(const std::string &, const std::string &);
  static void register_type(type_map &);
};

Description

type_serializer public static functions

  1. static constexpr const char * type_name();
  2. static std::string serialize_value(const T & value);
  3. static T deserialize_value(const std::string & value);
  4. static void serialize_child(element & n, const char * name, 
                                const value_type & value);
  5. static void deserialize_child(const element & n, const char * name, 
                                  value_type & value);
  6. static element schema(const std::string & name, const std::string & prefix);
  7. static void register_type(type_map & types);

PrevUpHomeNext