OpenDaVINCI  4.15.3
odcore::serialization::Serializer Class Referenceabstract

#include <Serializer.h>

Inheritance diagram for odcore::serialization::Serializer:
Inheritance graph

Public Member Functions

 Serializer ()
 
virtual ~Serializer ()
 
virtual void getSerializedData (ostream &o)=0
 
virtual uint32_t writeValue (ostream &o, const Serializable &v)=0
 
virtual uint32_t writeValue (ostream &o, const bool &v)=0
 
virtual uint32_t writeValue (ostream &o, const char &v)=0
 
virtual uint32_t writeValue (ostream &o, const unsigned char &v)=0
 
virtual uint32_t writeValue (ostream &o, const int8_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const int16_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const uint16_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const int32_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const uint32_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const int64_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const uint64_t &v)=0
 
virtual uint32_t writeValue (ostream &o, const float &v)=0
 
virtual uint32_t writeValue (ostream &o, const double &v)=0
 
virtual uint32_t writeValue (ostream &o, const string &v)=0
 
virtual uint32_t writeValue (ostream &o, const void *data, const uint32_t &size)=0
 
virtual void write (const uint32_t &id, const Serializable &s)=0
 
virtual void write (const uint32_t &id, const bool &b)=0
 
virtual void write (const uint32_t &id, const char &c)=0
 
virtual void write (const uint32_t &id, const unsigned char &uc)=0
 
virtual void write (const uint32_t &id, const int8_t &i)=0
 
virtual void write (const uint32_t &id, const int16_t &i)=0
 
virtual void write (const uint32_t &id, const uint16_t &ui)=0
 
virtual void write (const uint32_t &id, const int32_t &i)=0
 
virtual void write (const uint32_t &id, const uint32_t &ui)=0
 
virtual void write (const uint32_t &id, const int64_t &i)=0
 
virtual void write (const uint32_t &id, const uint64_t &ui)=0
 
virtual void write (const uint32_t &id, const float &f)=0
 
virtual void write (const uint32_t &id, const double &d)=0
 
virtual void write (const uint32_t &id, const string &s)=0
 
virtual void write (const uint32_t &id, const void *data, const uint32_t &size)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const Serializable &s)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const bool &b)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const char &c)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const unsigned char &uc)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int8_t &i)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int16_t &i)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const uint16_t &ui)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int32_t &i)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const uint32_t &ui)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int64_t &i)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const uint64_t &ui)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const float &f)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const double &d)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const string &s)=0
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const void *data, const uint32_t &size)=0
 

Static Public Member Functions

static float htonf (float f)
 
static double htond (double d)
 
static uint64_t __htonll (uint64_t ui)
 
static int64_t __htonll (int64_t i)
 

Detailed Description

This class is the interface for any serializer.

Serializable

Constructor & Destructor Documentation

odcore::serialization::Serializer::Serializer ( )
odcore::serialization::Serializer::~Serializer ( )
virtual

Member Function Documentation

uint64_t odcore::serialization::Serializer::__htonll ( uint64_t  ui)
static

This method converts a uint64_t from host byte order to network byte order.

Parameters
uiuint64_t to be converted.
Returns
ui in NBO.

References odcore::wrapper::IS_BIG_ENDIAN.

Referenced by odcore::serialization::LCMSerializerVisitor::getSerializedData(), and odcore::serialization::QueryableNetstringsSerializerAACF::writeValue().

int64_t odcore::serialization::Serializer::__htonll ( int64_t  i)
static

This method converts an int64_t from host byte order to network byte order.

Parameters
iint64_t to be converted.
Returns
i in NBO.

References odcore::wrapper::IS_BIG_ENDIAN.

double odcore::serialization::Serializer::htond ( double  d)
static

This method converts a double from host byte order to network byte order.

Parameters
ddouble to be converted.
Returns
d in NBO.

References odcore::wrapper::IS_BIG_ENDIAN.

Referenced by odcore::serialization::QueryableNetstringsSerializerAACF::writeValue(), and odcore::serialization::QueryableNetstringsSerializerABCF::writeValue().

float odcore::serialization::Serializer::htonf ( float  f)
static

This method converts a float from host byte order to network byte order.

Parameters
ffloat to be converted.
Returns
f in NBO.

References odcore::wrapper::IS_BIG_ENDIAN.

Referenced by odcore::serialization::QueryableNetstringsSerializerAACF::writeValue(), and odcore::serialization::QueryableNetstringsSerializerABCF::writeValue().

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const Serializable s 
)
pure virtual
virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const bool &  b 
)
pure virtual

This method serializes a bool.

Parameters
idIdentifier for the b to be serialized.
bBool to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const char &  c 
)
pure virtual

This method serializes a char.

Parameters
idIdentifier for the c to be serialized.
cChar to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const unsigned char &  uc 
)
pure virtual

This method serializes an unsigned char.

Parameters
idIdentifier for the uc to be serialized.
ucUnsigned char to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const int8_t &  i 
)
pure virtual
virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const int16_t &  i 
)
pure virtual
virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const uint16_t &  ui 
)
pure virtual

This method serializes an uint32_t.

Parameters
idIdentifier for the ui to be serialized.
uiUnsigned int32_t to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const int32_t &  i 
)
pure virtual
virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const uint32_t &  ui 
)
pure virtual

This method serializes an uint32_t.

Parameters
idIdentifier for the ui to be serialized.
uiUnsigned int32_t to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const int64_t &  i 
)
pure virtual
virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const uint64_t &  ui 
)
pure virtual

This method serializes an uint32_t.

Parameters
idIdentifier for the ui to be serialized.
uiUnsigned int32_t to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const float &  f 
)
pure virtual

This method serializes a float.

Parameters
idIdentifier for the f to be serialized.
fFloat to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const double &  d 
)
pure virtual

This method serializes a double.

Parameters
idIdentifier for the d to be serialized.
dDouble to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  s 
)
pure virtual

This method serializes a string.

Parameters
idIdentifier for the s to be serialized.
sString to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const void *  data,
const uint32_t &  size 
)
pure virtual

This method serializes undefined data of length size.

Parameters
idIdentifier for the data to be serialized.
dataData to be serialized.
sizeLength of the data to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const Serializable s 
)
pure virtual

This method serializes a Serializable.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
sSerializable to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const bool &  b 
)
pure virtual

This method serializes a bool.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
bBool to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const char &  c 
)
pure virtual

This method serializes a char.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
cChar to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const unsigned char &  uc 
)
pure virtual

This method serializes an unsigned char.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
ucUnsigned char to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int8_t &  i 
)
pure virtual

This method serializes an int.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
iInt to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int16_t &  i 
)
pure virtual

This method serializes an int.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
iInt to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const uint16_t &  ui 
)
pure virtual

This method serializes an uint32_t.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
uiUnsigned int32_t to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int32_t &  i 
)
pure virtual

This method serializes an int.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
iInt to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const uint32_t &  ui 
)
pure virtual

This method serializes an uint32_t.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
uiUnsigned int32_t to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int64_t &  i 
)
pure virtual

This method serializes an int.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
iInt to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const uint64_t &  ui 
)
pure virtual

This method serializes an uint32_t.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
uiUnsigned int32_t to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const float &  f 
)
pure virtual

This method serializes a float.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
fFloat to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const double &  d 
)
pure virtual

This method serializes a double.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
dDouble to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const string &  s 
)
pure virtual

This method serializes a string.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
sString to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual void odcore::serialization::Serializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const void *  data,
const uint32_t &  size 
)
pure virtual

This method serializes undefined data of length size.

Parameters
idIdentifier for the value to be serialized.
longNameLong string name of the field.
shortNameShort string name of the field.
dataData to be serialized.
sizeLength of the data to be serialized.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const Serializable v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

Referenced by odcore::serialization::QueryableNetstringsSerializer::writeValue().

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const bool &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const char &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const unsigned char &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const int8_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const int16_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const uint16_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const int32_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const uint32_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const int64_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const uint64_t &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const float &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const double &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const string &  v 
)
pure virtual

This method serializes the given value using raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
vValue to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.

virtual uint32_t odcore::serialization::Serializer::writeValue ( ostream &  o,
const void *  data,
const uint32_t &  size 
)
pure virtual

This method serializes undefined data of length size using the raw encoding for values of this Serializer implementation.

Parameters
oStream to be used for serialization.
dataData to be serialized.
sizeLength of the data to be serialized.
Returns
Number of bytes written for serialization.

Implemented in odcore::serialization::ProtoSerializer, odcore::serialization::QueryableNetstringsSerializer, odcore::serialization::QueryableNetstringsSerializerAACF, and odcore::serialization::QueryableNetstringsSerializerABCF.