21 #define POTHOS_OBJECT_SERIALIZE(ValueType) \
22 POTHOS_CLASS_EXPORT_GUID(Pothos::Detail::ObjectContainerT<ValueType>, "Pothos::Object<" #ValueType ">")
29 #ifndef POTHOS_ALL_NO_LIB
30 #define POTHOS_ALL_NO_LIB
33 #include <Pothos/serialization/base_object.hpp>
34 #include <Pothos/serialization/split_free.hpp>
36 #include <Pothos/archive/polymorphic_iarchive.hpp>
37 #include <Pothos/archive/polymorphic_oarchive.hpp>
39 #include <Pothos/serialization/export.hpp>
40 #include <Pothos/serialization/extended_type_info.hpp>
43 namespace serialization {
45 template<
class Archive>
46 void serialize(Archive &, Pothos::Detail::ObjectContainer &,
const unsigned int){}
48 template <
class Archive,
typename ValueType>
49 void serialize(Archive &ar, Pothos::Detail::ObjectContainerT<ValueType> &t,
const unsigned int)
51 Pothos::serialization::base_object<Pothos::Detail::ObjectContainer>(t);
55 template<
class Archive>
58 const bool is_null = not t;
60 if (not is_null) ar << t.
_impl;
63 template<
class Archive>
69 if (not is_null) ar >> t._impl;
77 #include <Pothos/serialization/complex.hpp>
78 #include <Pothos/serialization/string.hpp>
79 #include <Pothos/serialization/vector.hpp>
80 #include <Pothos/serialization/set.hpp>
81 #include <Pothos/serialization/map.hpp>
void save(Archive &ar, const Pothos::Object &t, const unsigned int)
Definition: Serialize.hpp:56
void load(Archive &ar, Pothos::Object &t, const unsigned int)
Definition: Serialize.hpp:64
Detail::ObjectContainer * _impl
Private implementation details.
Definition: Object.hpp:258
Definition: Object.hpp:55
void serialize(Archive &, Pothos::Detail::ObjectContainer &, const unsigned int)
Definition: Serialize.hpp:46