37 SchemaAndByteArrayConverter::SchemaAndByteArrayConverter() :
38 Converter<string>(
"schemaandbytearray",
"any", true) {
47 boost::shared_ptr<pair<string, boost::shared_ptr<string> > > realData =
48 boost::static_pointer_cast<pair<string, boost::shared_ptr<string> > >(
51 wire = *(realData->second);
52 return realData->first;
60 boost::shared_ptr<pair<
string, boost::shared_ptr<void> > >(
61 new pair<
string, boost::shared_ptr<void> >(wireSchema,
62 boost::shared_ptr<string>(
new string(wire)))));
AnnotatedData deserialize(const std::string &wireSchema, const std::string &wire)
Deserializes a domain object from a wire type.
std::pair< std::string, boost::shared_ptr< void > > AnnotatedData
A combination of data type and the actual data.
virtual ~SchemaAndByteArrayConverter()
virtual std::string getDataType() const
Returns the name of the data type this converter is applicable for.
std::string serialize(const AnnotatedData &data, std::string &wire)
Serialized the given domain object to the wire.