19 #ifndef avro_AvroTraits_hh__
20 #define avro_AvroTraits_hh__
44 #define DEFINE_PRIMITIVE(CTYPE, AVROTYPE) \
46 struct is_serializable<CTYPE> : public boost::true_type{}; \
49 struct type_to_avro<CTYPE> { \
50 static const Type type = AVROTYPE; \
53 #define DEFINE_PROMOTABLE_PRIMITIVE(CTYPE, AVROTYPE) \
55 struct is_promotable<CTYPE> : public boost::true_type{}; \
57 DEFINE_PRIMITIVE(CTYPE, AVROTYPE)
59 DEFINE_PROMOTABLE_PRIMITIVE(int32_t,
AVRO_INT)
60 DEFINE_PROMOTABLE_PRIMITIVE(int64_t,
AVRO_LONG)
Type
The "type" for the schema.
Definition: Types.hh:31
A bunch of templates and specializations for encoding and decoding specific types.
Definition: AvroParse.hh:31
define a type to identify Null in template functions
Definition: Types.hh:102
Definition: AvroTraits.hh:34
Definition: AvroTraits.hh:40