19 #ifndef avro_AvroParse_hh__
20 #define avro_AvroParse_hh__
23 #include <boost/static_assert.hpp>
25 #include "ResolvingReader.hh"
36 template <
typename Reader,
typename T>
43 void parse(ResolvingReader &p, T& val)
45 translatingParse(p, val, is_serializable<T>());
50 template <
typename Reader,
typename T>
53 BOOST_STATIC_ASSERT(
sizeof(T)==0);
56 template <
typename Reader,
typename T>
59 BOOST_STATIC_ASSERT(
sizeof(T)==0);
67 template <
typename Reader,
typename T>
72 template <
typename Reader>
78 void translatingParse(ResolvingReader &p, T& val,
const boost::true_type &) {
A bunch of templates and specializations for encoding and decoding specific types.
Definition: AvroParse.hh:31
Define an is_serializable trait for types we can serialize natively.
void parse(Reader &p, T &val)
The main parse entry point function.
Definition: AvroParse.hh:37
Definition: AvroTraits.hh:34