OpenDaVINCI  4.16.0
odcore::serialization::QueryableNetstringsSerializerVisitor Class Reference

#include <QueryableNetstringsSerializerVisitor.h>

Inheritance diagram for odcore::serialization::QueryableNetstringsSerializerVisitor:
Inheritance graph

Public Member Functions

 QueryableNetstringsSerializerVisitor ()
 
virtual ~QueryableNetstringsSerializerVisitor ()
 
virtual void beginVisit (const int32_t &id, const string &shortName, const string &longName)
 
virtual void endVisit ()
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, Serializable &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, bool &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, char &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, unsigned char &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int8_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int16_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, uint16_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int32_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, uint32_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, int64_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, uint64_t &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, float &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, double &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, string &v)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, void *data, const uint32_t &size)
 
virtual void visit (const uint32_t &id, const string &longName, const string &shortName, void *data, const uint32_t &count, const odcore::TYPE_ &t)
 
virtual void getSerializedData (ostream &o)
 
virtual uint32_t writeValue (ostream &o, const Serializable &v)
 
virtual uint32_t writeValue (ostream &o, const bool &v)
 
virtual uint32_t writeValue (ostream &o, const char &v)
 
virtual uint32_t writeValue (ostream &o, const unsigned char &v)
 
virtual uint32_t writeValue (ostream &o, const int8_t &v)
 
virtual uint32_t writeValue (ostream &o, const int16_t &v)
 
virtual uint32_t writeValue (ostream &o, const uint16_t &v)
 
virtual uint32_t writeValue (ostream &o, const int32_t &v)
 
virtual uint32_t writeValue (ostream &o, const uint32_t &v)
 
virtual uint32_t writeValue (ostream &o, const int64_t &v)
 
virtual uint32_t writeValue (ostream &o, const uint64_t &v)
 
virtual uint32_t writeValue (ostream &o, const float &v)
 
virtual uint32_t writeValue (ostream &o, const double &v)
 
virtual uint32_t writeValue (ostream &o, const string &v)
 
virtual uint32_t writeValue (ostream &o, const void *data, const uint32_t &size)
 
virtual void write (const uint32_t &id, const Serializable &s)
 
virtual void write (const uint32_t &id, const bool &b)
 
virtual void write (const uint32_t &id, const char &c)
 
virtual void write (const uint32_t &id, const unsigned char &uc)
 
virtual void write (const uint32_t &id, const int8_t &i)
 
virtual void write (const uint32_t &id, const int16_t &i)
 
virtual void write (const uint32_t &id, const uint16_t &ui)
 
virtual void write (const uint32_t &id, const int32_t &i)
 
virtual void write (const uint32_t &id, const uint32_t &ui)
 
virtual void write (const uint32_t &id, const int64_t &i)
 
virtual void write (const uint32_t &id, const uint64_t &ui)
 
virtual void write (const uint32_t &id, const float &f)
 
virtual void write (const uint32_t &id, const double &d)
 
virtual void write (const uint32_t &id, const string &s)
 
virtual void write (const uint32_t &id, const void *data, const uint32_t &size)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const Serializable &s)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const bool &b)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const char &c)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const unsigned char &uc)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int8_t &i)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int16_t &i)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const uint16_t &ui)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int32_t &i)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const uint32_t &ui)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const int64_t &i)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const uint64_t &ui)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const float &f)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const double &d)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const string &s)
 
virtual void write (const uint32_t &id, const string &longName, const string &shortName, const void *data, const uint32_t &size)
 

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 wraps the QueryableNetstringsSerializer into a Visitor.

QueryableNetstringsSerializer

Constructor & Destructor Documentation

odcore::serialization::QueryableNetstringsSerializerVisitor::QueryableNetstringsSerializerVisitor ( )

Default Constructor.

odcore::serialization::QueryableNetstringsSerializerVisitor::~QueryableNetstringsSerializerVisitor ( )
virtual

Member Function Documentation

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

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)
staticinherited

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.

void odcore::serialization::QueryableNetstringsSerializerVisitor::beginVisit ( const int32_t &  id,
const string &  shortName,
const string &  longName 
)
virtual

This method is called from a Visitable before the first visit(...) call.

Parameters
idIdentifier of the visitable; typically the ID() of the visited message.
shortNameof the visited message.
longNameof the visited message.

Implements odcore::base::Visitor.

void odcore::serialization::QueryableNetstringsSerializerVisitor::endVisit ( )
virtual

This method is called from a Visitable after the last visit(...) call.

Implements odcore::base::Visitor.

void odcore::serialization::QueryableNetstringsSerializer::getSerializedData ( ostream &  o)
virtualinherited

This method returns the data in serialized format.

Parameters
oostream object (for instance a stringstream) to serialize the data into.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::getSerializedData().

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

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)
staticinherited

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().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
Serializable v 
)
virtual

This method visits a Serializable.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vSerializable to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
bool &  v 
)
virtual

This method visits a bool.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vBool to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
char &  v 
)
virtual

This method visits a char.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vChar to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
unsigned char &  v 
)
virtual

This method visits an unsigned char.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vUnsigned char to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int8_t &  v 
)
virtual

This method visits an int8_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
iint8_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int16_t &  v 
)
virtual

This method visits an int16_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
iint16_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
uint16_t &  v 
)
virtual

This method visits an uint16_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vuint16_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int32_t &  v 
)
virtual

This method visits an int32_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
iint32_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
uint32_t &  v 
)
virtual

This method visits an uint32_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vuint32_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
int64_t &  v 
)
virtual

This method visits an int64_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
iint64_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
uint64_t &  v 
)
virtual

This method visits an uint64_t.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vuint64_t to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
float &  v 
)
virtual

This method visits a float.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vFloat to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
double &  v 
)
virtual

This method visits a double.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vDouble to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
string &  v 
)
virtual

This method visits a string.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
vString to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
void *  data,
const uint32_t &  size 
)
virtual

This method visits undefined data of length size.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
dataData to be serialized.
sizeLength of the data to be serialized.

Implements odcore::base::Visitor.

References odcore::serialization::QueryableNetstringsSerializer::write().

void odcore::serialization::QueryableNetstringsSerializerVisitor::visit ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
void *  data,
const uint32_t &  count,
const odcore::TYPE_ t 
)
virtual

This method visits undefined data of length size.

Parameters
ididentifier for the v to be serialized.
longNameLong identifier (ie. with package name) for the v to be serialized.
shortNameShort identifier for the v to be serialized.
dataData to be serialized.
countNumber of elements in the fixed-sized array.
tData type for an element.

Implements odcore::base::Visitor.

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const Serializable s 
)
virtualinherited

This method serializes a Serializable.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

Referenced by visit().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const bool &  b 
)
virtualinherited

This method serializes a bool.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const char &  c 
)
virtualinherited

This method serializes a char.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const unsigned char &  uc 
)
virtualinherited

This method serializes an unsigned char.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const int8_t &  i 
)
virtualinherited

This method serializes an int.

Parameters
idIdentifier for the i to be serialized.
iInt to be serialized.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const int16_t &  i 
)
virtualinherited

This method serializes an int.

Parameters
idIdentifier for the i to be serialized.
iInt to be serialized.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const uint16_t &  ui 
)
virtualinherited

This method serializes an uint32_t.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const int32_t &  i 
)
virtualinherited

This method serializes an int.

Parameters
idIdentifier for the i to be serialized.
iInt to be serialized.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const uint32_t &  ui 
)
virtualinherited

This method serializes an uint32_t.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const int64_t &  i 
)
virtualinherited

This method serializes an int.

Parameters
idIdentifier for the i to be serialized.
iInt to be serialized.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const uint64_t &  ui 
)
virtualinherited

This method serializes an uint32_t.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const float &  f 
)
virtualinherited

This method serializes a float.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const double &  d 
)
virtualinherited

This method serializes a double.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  s 
)
virtualinherited

This method serializes a string.

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

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const void *  data,
const uint32_t &  size 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const Serializable s 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const bool &  b 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const char &  c 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const unsigned char &  uc 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int8_t &  i 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int16_t &  i 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const uint16_t &  ui 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int32_t &  i 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const uint32_t &  ui 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const int64_t &  i 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const uint64_t &  ui 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const float &  f 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const double &  d 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const string &  s 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

void odcore::serialization::QueryableNetstringsSerializer::write ( const uint32_t &  id,
const string &  longName,
const string &  shortName,
const void *  data,
const uint32_t &  size 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::write().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const Serializable v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const bool &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const char &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const unsigned char &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const int8_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const int16_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const uint16_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const int32_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const uint32_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const int64_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const uint64_t &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const float &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const double &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const string &  v 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().

uint32_t odcore::serialization::QueryableNetstringsSerializer::writeValue ( ostream &  o,
const void *  data,
const uint32_t &  size 
)
virtualinherited

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.

Implements odcore::serialization::Serializer.

References odcore::serialization::Serializer::writeValue().