SST  6.1.0
StructuralSimulationToolkit
SST::Core::Serialization::serializer Class Reference

This class is basically a wrapper for objects to declare the order in which their members should be ser/des. More...

#include <serializer.h>

Public Types

enum  SERIALIZE_MODE { SIZER, PACK, UNPACK }
 

Public Member Functions

pvt::ser_packerpacker ()
 
pvt::ser_unpackerunpacker ()
 
pvt::ser_sizersizer ()
 
template<class T >
void size (T &t)
 
template<class T >
void pack (T &t)
 
template<class T >
void unpack (T &t)
 
SERIALIZE_MODE mode () const
 
void set_mode (SERIALIZE_MODE mode)
 
void reset ()
 
template<typename T >
void primitive (T &t)
 
template<class T , int N>
void array (T arr[N])
 
template<typename T , typename Int >
void binary (T *&buffer, Int &size)
 
template<typename Int >
void binary (void *&buffer, Int &size)
 
void string (std::string &str)
 
void start_packing (char *buffer, size_t size)
 
void start_sizing ()
 
void start_unpacking (char *buffer, size_t size)
 
size_t size () const
 

Protected Attributes

pvt::ser_packer packer_
 
pvt::ser_unpacker unpacker_
 
pvt::ser_sizer sizer_
 
SERIALIZE_MODE mode_
 

Detailed Description

This class is basically a wrapper for objects to declare the order in which their members should be ser/des.


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