casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
Serializable Class Referenceabstract

#include <serializable.h>

Inheritance diagram for Serializable:
dyscostman::ThreadedDyscoColumn< DataType >::Header

Public Member Functions

virtual ~Serializable ()
 
virtual void Serialize (std::ostream &stream) const =0
 
virtual void Unserialize (std::istream &stream)=0
 

Static Public Member Functions

template<typename T >
static void SerializeToUInt64 (std::ostream &stream, T value)
 
template<typename T >
static void SerializeToUInt32 (std::ostream &stream, T value)
 
template<typename T >
static void SerializeToUInt16 (std::ostream &stream, T value)
 
template<typename T >
static void SerializeToUInt8 (std::ostream &stream, T value)
 
static void SerializeToBool8 (std::ostream &stream, bool value)
 
static void SerializeToFloat (std::ostream &stream, float value)
 
static void SerializeToDouble (std::ostream &stream, double value)
 
static void SerializeToLDouble (std::ostream &stream, long double value)
 
static void SerializeToLDoubleC (std::ostream &stream, std::complex< long double > value)
 
static void SerializeToString (std::ostream &stream, const std::string &str)
 
static void SerializeTo32bString (std::ostream &stream, const std::string &str)
 
static uint64_t UnserializeUInt64 (std::istream &stream)
 
static uint32_t UnserializeUInt32 (std::istream &stream)
 
static uint16_t UnserializeUInt16 (std::istream &stream)
 
static uint8_t UnserializeUInt8 (std::istream &stream)
 
static bool UnserializeBool8 (std::istream &stream)
 
static double UnserializeFloat (std::istream &stream)
 
static double UnserializeDouble (std::istream &stream)
 
static long double UnserializeLDouble (std::istream &stream)
 
static std::complex< long double > UnserializeLDoubleC (std::istream &stream)
 
static void UnserializeString (std::istream &stream, std::string &destStr)
 
static void Unserialize32bString (std::istream &stream, std::string &destStr)
 

Static Private Member Functions

template<typename T >
static T Unserialize (std::istream &stream)
 

Detailed Description

Definition at line 9 of file serializable.h.

Constructor & Destructor Documentation

virtual Serializable::~Serializable ( )
inlinevirtual

Definition at line 11 of file serializable.h.

Member Function Documentation

virtual void Serializable::Serialize ( std::ostream &  stream) const
pure virtual
static void Serializable::SerializeTo32bString ( std::ostream &  stream,
const std::string &  str 
)
inlinestatic

Definition at line 66 of file serializable.h.

References SerializeToUInt32().

static void Serializable::SerializeToBool8 ( std::ostream &  stream,
bool  value 
)
inlinestatic

Definition at line 39 of file serializable.h.

References casacore::value().

static void Serializable::SerializeToDouble ( std::ostream &  stream,
double  value 
)
inlinestatic

Definition at line 48 of file serializable.h.

static void Serializable::SerializeToFloat ( std::ostream &  stream,
float  value 
)
inlinestatic

Definition at line 44 of file serializable.h.

static void Serializable::SerializeToLDouble ( std::ostream &  stream,
long double  value 
)
inlinestatic

Definition at line 52 of file serializable.h.

static void Serializable::SerializeToLDoubleC ( std::ostream &  stream,
std::complex< long double >  value 
)
inlinestatic

Definition at line 56 of file serializable.h.

static void Serializable::SerializeToString ( std::ostream &  stream,
const std::string &  str 
)
inlinestatic

Definition at line 61 of file serializable.h.

References SerializeToUInt64().

template<typename T >
static void Serializable::SerializeToUInt16 ( std::ostream &  stream,
value 
)
inlinestatic

Definition at line 28 of file serializable.h.

References casacore::value().

template<typename T >
static void Serializable::SerializeToUInt32 ( std::ostream &  stream,
value 
)
inlinestatic
template<typename T >
static void Serializable::SerializeToUInt64 ( std::ostream &  stream,
value 
)
inlinestatic

Definition at line 16 of file serializable.h.

References casacore::value().

Referenced by SerializeToString().

template<typename T >
static void Serializable::SerializeToUInt8 ( std::ostream &  stream,
value 
)
inlinestatic

Definition at line 34 of file serializable.h.

References casacore::value().

virtual void Serializable::Unserialize ( std::istream &  stream)
pure virtual
template<typename T >
static T Serializable::Unserialize ( std::istream &  stream)
inlinestaticprivate

Definition at line 126 of file serializable.h.

static void Serializable::Unserialize32bString ( std::istream &  stream,
std::string &  destStr 
)
inlinestatic

Definition at line 116 of file serializable.h.

References UnserializeUInt32().

static bool Serializable::UnserializeBool8 ( std::istream &  stream)
inlinestatic

Definition at line 88 of file serializable.h.

static double Serializable::UnserializeDouble ( std::istream &  stream)
inlinestatic

Definition at line 96 of file serializable.h.

static double Serializable::UnserializeFloat ( std::istream &  stream)
inlinestatic

Definition at line 92 of file serializable.h.

static long double Serializable::UnserializeLDouble ( std::istream &  stream)
inlinestatic

Definition at line 100 of file serializable.h.

static std::complex<long double> Serializable::UnserializeLDoubleC ( std::istream &  stream)
inlinestatic

Definition at line 104 of file serializable.h.

static void Serializable::UnserializeString ( std::istream &  stream,
std::string &  destStr 
)
inlinestatic

Definition at line 108 of file serializable.h.

References UnserializeUInt64().

static uint16_t Serializable::UnserializeUInt16 ( std::istream &  stream)
inlinestatic

Definition at line 80 of file serializable.h.

static uint32_t Serializable::UnserializeUInt32 ( std::istream &  stream)
inlinestatic
static uint64_t Serializable::UnserializeUInt64 ( std::istream &  stream)
inlinestatic

Definition at line 72 of file serializable.h.

Referenced by UnserializeString().

static uint8_t Serializable::UnserializeUInt8 ( std::istream &  stream)
inlinestatic

Definition at line 84 of file serializable.h.


The documentation for this class was generated from the following file: