Avro C++
|
A utility class to write generic datum to encoders. More...
#include <Generic.hh>
Public Member Functions | |
GenericWriter (ValidSchema s, EncoderPtr encoder) | |
Constructs a writer for the given schema using the given encoder. | |
void | write (const GenericDatum &datum) const |
Writes a value onto the encoder. | |
Static Public Member Functions | |
static void | write (Encoder &e, const GenericDatum &g) |
Writes a generic datum on to the stream. | |
static void | write (Encoder &e, const GenericDatum &g, const ValidSchema &) |
Writes a generic datum on to the stream, using the given schema. More... | |
A utility class to write generic datum to encoders.
|
inlinestatic |
Writes a generic datum on to the stream, using the given schema.
Retained for backward compatibility.