class Deserializer
Defined at line 39 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h
Deserializer is the interface used to decode data from structured storage.
Methods that return a bool use this to indicate success.
Public Methods
bool deserialize (boolean * )
deserialization methods for simple data types.
If the stored object is not of the correct type, then these function will
return false.
bool deserialize (integer * )
bool deserialize (number * )
bool deserialize (string * )
bool deserialize (object * )
bool deserialize (any * )
size_t count ()
count() returns the number of elements in the array object referenced by
this Deserializer.
bool array (const std::function<bool (Deserializer *)> & )
array() calls the provided std::function for deserializing each array
element in the array object referenced by this Deserializer.
bool field (const std::string & name, const std::function<bool (Deserializer *)> & )
field() calls the provided std::function for deserializing the field with
the given name from the struct object referenced by this Deserializer.
void ~Deserializer ()
Defined at line 41 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h
template <typename T, typename = std::enable_if<TypeOf<T>::has_custom_serialization>>
bool deserialize (T * )
deserialize() delegates to TypeOf
<T
>::type()->deserialize().
Defined at line 89 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h
template <typename T>
bool deserialize (dap::array<T> * )
deserialize() decodes an array.
Defined at line 94 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h
template <typename T>
bool deserialize (dap::optional<T> * )
deserialize() decodes an optional.
Defined at line 105 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h
template <typename T0, typename... Types>
bool deserialize (dap::variant<T0, Types...> * )
deserialize() decodes an variant.
Defined at line 114 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h
template <typename T>
bool field (const std::string & name, T * f)
deserialize() decodes the struct field f with the given name.
Defined at line 119 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h