Antkeeper
0.0.1
|
Specializations of serializer define the serialization process for a given type. More...
#include <serializer.hpp>
Public Member Functions | |
void | serialize (const T &value, serialize_context &ctx) |
Serializes a value. More... | |
void | serialize (const i18n::string_map &map, serialize_context &ctx) |
Serializes a string map. More... | |
void | serialize (const bool &value, serialize_context &ctx) |
void | serialize (const std::uint8_t &value, serialize_context &ctx) |
void | serialize (const std::uint16_t &value, serialize_context &ctx) |
void | serialize (const std::uint32_t &value, serialize_context &ctx) |
void | serialize (const std::uint64_t &value, serialize_context &ctx) |
void | serialize (const std::int8_t &value, serialize_context &ctx) |
void | serialize (const std::int16_t &value, serialize_context &ctx) |
void | serialize (const std::int32_t &value, serialize_context &ctx) |
void | serialize (const std::int64_t &value, serialize_context &ctx) |
void | serialize (const float &value, serialize_context &ctx) |
void | serialize (const double &value, serialize_context &ctx) |
void | serialize (const std::string &value, serialize_context &ctx) |
void | serialize (const std::u8string &value, serialize_context &ctx) |
void | serialize (const std::u16string &value, serialize_context &ctx) |
void | serialize (const std::u32string &value, serialize_context &ctx) |
void | serialize (const dict< hash::fnv1a32_t > &dict, serialize_context &ctx) |
Serializes a dict with a 32-bit FNV-1a hash key. More... | |
void | serialize (const ::control_profile &profile, serialize_context &ctx) |
Serializes a control profile. More... | |
void | serialize (const input::gamepad_axis_mapping &mapping, serialize_context &ctx) |
Serializes an input mapping. More... | |
void | serialize (const input::gamepad_button_mapping &mapping, serialize_context &ctx) |
Serializes an input mapping. More... | |
void | serialize (const input::key_mapping &mapping, serialize_context &ctx) |
Serializes an input mapping. More... | |
void | serialize (const input::mouse_button_mapping &mapping, serialize_context &ctx) |
Serializes an input mapping. More... | |
void | serialize (const input::mouse_motion_mapping &mapping, serialize_context &ctx) |
Serializes an input mapping. More... | |
void | serialize (const input::mouse_scroll_mapping &mapping, serialize_context &ctx) |
Serializes an input mapping. More... | |
Specializations of serializer define the serialization process for a given type.
T | Serializable type. |
Definition at line 31 of file serializer.hpp.
void serializer<::control_profile >::serialize | ( | const ::control_profile & | profile, |
serialize_context & | ctx | ||
) |
Serializes a control profile.
[in] | profile | Control profile to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
serialize_error | Unsupported mapping type. |
Definition at line 38 of file control-profile.cpp.
void serializer< bool >::serialize | ( | const bool & | value, |
serialize_context & | ctx | ||
) |
Definition at line 24 of file serializer.cpp.
void serializer< dict< hash::fnv1a32_t > >::serialize | ( | const dict< hash::fnv1a32_t > & | dict, |
serialize_context & | ctx | ||
) |
Serializes a dict with a 32-bit FNV-1a hash key.
[in] | dict | Dict to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
serialize_error | Unsupported dict value type. |
void serializer< double >::serialize | ( | const double & | value, |
serialize_context & | ctx | ||
) |
Definition at line 85 of file serializer.cpp.
void serializer< float >::serialize | ( | const float & | value, |
serialize_context & | ctx | ||
) |
Definition at line 79 of file serializer.cpp.
void serializer< i18n::string_map >::serialize | ( | const i18n::string_map & | map, |
serialize_context & | ctx | ||
) |
Serializes a string map.
[in] | map | String map to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 38 of file string-map.cpp.
void serializer< input::gamepad_axis_mapping >::serialize | ( | const input::gamepad_axis_mapping & | mapping, |
serialize_context & | ctx | ||
) |
Serializes an input mapping.
[in] | mapping | Input mapping to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 75 of file mapping.cpp.
void serializer< input::gamepad_button_mapping >::serialize | ( | const input::gamepad_button_mapping & | mapping, |
serialize_context & | ctx | ||
) |
Serializes an input mapping.
[in] | mapping | Input mapping to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 83 of file mapping.cpp.
void serializer< input::key_mapping >::serialize | ( | const input::key_mapping & | mapping, |
serialize_context & | ctx | ||
) |
Serializes an input mapping.
[in] | mapping | Input mapping to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 89 of file mapping.cpp.
void serializer< input::mouse_button_mapping >::serialize | ( | const input::mouse_button_mapping & | mapping, |
serialize_context & | ctx | ||
) |
Serializes an input mapping.
[in] | mapping | Input mapping to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 98 of file mapping.cpp.
void serializer< input::mouse_motion_mapping >::serialize | ( | const input::mouse_motion_mapping & | mapping, |
serialize_context & | ctx | ||
) |
Serializes an input mapping.
[in] | mapping | Input mapping to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 104 of file mapping.cpp.
void serializer< input::mouse_scroll_mapping >::serialize | ( | const input::mouse_scroll_mapping & | mapping, |
serialize_context & | ctx | ||
) |
Serializes an input mapping.
[in] | mapping | Input mapping to serialize. |
[in,out] | ctx | Serialize context. |
serialize_error | Write error. |
Definition at line 112 of file mapping.cpp.
void serializer< std::int16_t >::serialize | ( | const std::int16_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 61 of file serializer.cpp.
void serializer< std::int32_t >::serialize | ( | const std::int32_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 67 of file serializer.cpp.
void serializer< std::int64_t >::serialize | ( | const std::int64_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 73 of file serializer.cpp.
void serializer< std::int8_t >::serialize | ( | const std::int8_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 55 of file serializer.cpp.
void serializer< std::string >::serialize | ( | const std::string & | value, |
serialize_context & | ctx | ||
) |
Definition at line 91 of file serializer.cpp.
void serializer< std::u16string >::serialize | ( | const std::u16string & | value, |
serialize_context & | ctx | ||
) |
Definition at line 107 of file serializer.cpp.
void serializer< std::u32string >::serialize | ( | const std::u32string & | value, |
serialize_context & | ctx | ||
) |
Definition at line 115 of file serializer.cpp.
void serializer< std::u8string >::serialize | ( | const std::u8string & | value, |
serialize_context & | ctx | ||
) |
Definition at line 99 of file serializer.cpp.
void serializer< std::uint16_t >::serialize | ( | const std::uint16_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 37 of file serializer.cpp.
void serializer< std::uint32_t >::serialize | ( | const std::uint32_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 43 of file serializer.cpp.
void serializer< std::uint64_t >::serialize | ( | const std::uint64_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 49 of file serializer.cpp.
void serializer< std::uint8_t >::serialize | ( | const std::uint8_t & | value, |
serialize_context & | ctx | ||
) |
Definition at line 31 of file serializer.cpp.
void serializer< T >::serialize | ( | const T & | value, |
serialize_context & | ctx | ||
) |
Serializes a value.
value | Value to serialize. |
ctx | Serialize context. |