CarobNS::SQLDataSerialization Class Reference

This class defines Serializers for SQL Data: one function of deserialization per data type. More...

#include <SQLDataSerialization.hpp>

List of all members.

Static Public Member Functions

static deserializerPtr getDeserializer (TypeTag ttPrm) throw (NotImplementedException, UnexpectedException)
 To get the deserializer, give the object type and you'll get the function.
static uint32_t floatToU32Bits (float f)
 Relatively safe "reinterpret_cast" of an IEEE 754 float to its uint32_t bit representation.
static float U32BitsToFloat (uint32_t ui)
 See floatToU32Bits(float f).
static uint64_t doubleToU64Bits (double d)
 Relatively safe "reinterpret_cast" of an IEEE 754 double to its uint64_t bit representation.
static double U64BitsToDouble (uint64_t ui)
 See doubleToU64Bits(double d).


Detailed Description

This class defines Serializers for SQL Data: one function of deserialization per data type.


Member Function Documentation

static deserializerPtr CarobNS::SQLDataSerialization::getDeserializer ( TypeTag  ttPrm  )  throw (NotImplementedException, UnexpectedException) [static]

To get the deserializer, give the object type and you'll get the function.

Parameters:
ttPrm type of object to be deserialized
Exceptions:
NotImplementedException if the deserialization for the given type is not implemented yet

static uint32_t CarobNS::SQLDataSerialization::floatToU32Bits ( float  f  )  [static]

Relatively safe "reinterpret_cast" of an IEEE 754 float to its uint32_t bit representation.

Does NOT swap bytes in any way, so endianness of the result is arch-specific. Endianness of floats is typically the same as for integer types, but not granted.

Parameters:
f value to convert

static uint64_t CarobNS::SQLDataSerialization::doubleToU64Bits ( double  d  )  [static]

Relatively safe "reinterpret_cast" of an IEEE 754 double to its uint64_t bit representation.

Does NOT swap bytes in any way, so endianness of the result is arch-specific. Endianness of doubles is typically the same as for integer types, but not granted.

Parameters:
d value to convert


The documentation for this class was generated from the following file:
Generated on Tue Oct 24 09:05:38 2006 for Carob by  doxygen 1.5.0