class FieldSerializer

Defined at line 226 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h

FieldSerializer is the interface used to serialize fields of an object.

Public Methods

bool field (const std::string & name, const SerializeFunc & )

field() encodes a field to the struct object referenced by this Serializer.

The SerializeFunc will be called with a Serializer used to encode the

field's data.

void ~FieldSerializer ()

Defined at line 232 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h

template <typename T, typename = typename std::enable_if<!IsSerializeFunc<T>::value>::type>
bool field (const std::string & name, const T & v)

field() encodes the field with the given name and value.

Defined at line 247 of file ../../third_party/github.com/google/cppdap/src/include/dap/serialization.h