This class walks the parse tree as data is being serialized, and throws if attempt to serialize a data type does not match the type expected in the schema. More...
#include <ValidatingWriter.hh>
Public Member Functions | |
ValidatingWriter (const ValidSchema &schema, OutputStreamer &out) | |
template<typename T > | |
void | writeValue (T val) |
void | writeValue (const std::string &val) |
void | writeBytes (const void *val, size_t size) |
template<size_t N> | |
void | writeFixed (const uint8_t(&val)[N]) |
template<size_t N> | |
void | writeFixed (const boost::array< uint8_t, N > &val) |
void | writeRecord () |
void | writeArrayBlock (int64_t size) |
void | writeArrayEnd () |
void | writeMapBlock (int64_t size) |
void | writeMapEnd () |
void | writeUnion (int64_t choice) |
void | writeEnum (int64_t choice) |
This class walks the parse tree as data is being serialized, and throws if attempt to serialize a data type does not match the type expected in the schema.