Pothos  0.2.1-g9f04573d
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Namespaces | Macros | Functions
Serialize.hpp File Reference
#include <Pothos/Config.hpp>
#include <Pothos/Object/ObjectImpl.hpp>
#include <cassert>
#include <Pothos/serialization/base_object.hpp>
#include <Pothos/serialization/split_free.hpp>
#include <Pothos/archive/polymorphic_iarchive.hpp>
#include <Pothos/archive/polymorphic_oarchive.hpp>
#include <Pothos/serialization/export.hpp>
#include <Pothos/serialization/extended_type_info.hpp>
#include <Pothos/serialization/complex.hpp>
#include <Pothos/serialization/string.hpp>
#include <Pothos/serialization/vector.hpp>
#include <Pothos/serialization/set.hpp>
#include <Pothos/serialization/map.hpp>

Go to the source code of this file.

Namespaces

 Pothos
 
 Pothos::serialization
 

Macros

#define POTHOS_OBJECT_SERIALIZE(ValueType)   POTHOS_CLASS_EXPORT_GUID(Pothos::Detail::ObjectContainerT<ValueType>, "Pothos::Object<" #ValueType ">")
 
#define POTHOS_ALL_NO_LIB
 

Functions

template<class Archive >
void Pothos::serialization::serialize (Archive &, Pothos::Detail::ObjectContainer &, const unsigned int)
 
template<class Archive , typename ValueType >
void Pothos::serialization::serialize (Archive &ar, Pothos::Detail::ObjectContainerT< ValueType > &t, const unsigned int)
 
template<class Archive >
void Pothos::serialization::save (Archive &ar, const Pothos::Object &t, const unsigned int)
 
template<class Archive >
void Pothos::serialization::load (Archive &ar, Pothos::Object &t, const unsigned int)
 

Detailed Description

Serialization support for types held by an Object. This file provides the POTHOS_OBJECT_SERIALIZE macro which exports types into the serialization system. This file is not automatically included by Object.hpp; users adding a type should explicitly include this file.

Macro Definition Documentation

#define POTHOS_ALL_NO_LIB
#define POTHOS_OBJECT_SERIALIZE (   ValueType)    POTHOS_CLASS_EXPORT_GUID(Pothos::Detail::ObjectContainerT<ValueType>, "Pothos::Object<" #ValueType ">")

Export a serialization for the specified type. Call this macro only once in a cpp file. Usage: POTHOS_OBJECT_SERIALIZE(MyType)