Pothos  0.7.0-gf7fbae99
The Pothos dataflow programming software suite
Namespaces | Macros | Functions
Serialize.hpp File Reference
#include <Pothos/Config.hpp>
#include <Pothos/Object/ObjectImpl.hpp>
#include <Pothos/Archive.hpp>
#include <cassert>

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

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

◆ POTHOS_OBJECT_SERIALIZE

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