Pothos
0.7.0-gf7fbae99
The Pothos dataflow programming software suite
include
Pothos
Archive
Split.hpp
Go to the documentation of this file.
1
11
#pragma once
12
#include <
Pothos/Config.hpp
>
13
#include <
Pothos/Archive/Invoke.hpp
>
14
#include <type_traits>
15
21
#define POTHOS_SERIALIZATION_SPLIT_FREE(T) \
22
namespace Pothos { namespace serialization { \
23
template <typename Archive> \
24
void serialize(Archive &ar, T &t, const unsigned int ver) { \
25
Pothos::serialization::invokeSplit(ar, t, ver); \
26
} \
27
}}
28
34
#define POTHOS_SERIALIZATION_SPLIT_MEMBER() \
35
template <typename Archive> \
36
typename std::enable_if<Archive::isSave::value>::type \
37
serialize(Archive &ar, const unsigned int ver) { \
38
this->save(ar, ver); \
39
} \
40
template <typename Archive> \
41
typename std::enable_if<!Archive::isSave::value>::type \
42
serialize(Archive &ar, const unsigned int ver) { \
43
this->load(ar, ver); \
44
}
Config.hpp
Invoke.hpp
Generated on Tue Apr 10 2018 20:23:41 for Pothos by
1.8.13