Specifies the requirements for types that are serialisable via Cereal.
More...
#include <seqan3/core/concept/cereal.hpp >
Specifies the requirements for types that are serialisable via Cereal.
The value_t
type satisfy the cerealisable, if value_t
can be serialised with cereal, i.e. value_t
has a single serialisation function (serialize
) or split load/save pair (load and save) either inside or outside of the class.
See also https://uscilab.github.io/cereal/serialization_functions.html
#include <cereal/types/array.hpp>
Adaptions of concepts from the Cereal library.
A "pretty printer" for most SeqAn data structures and related types.
Definition debug_stream_type.hpp:79
Provides seqan3::dna4, container aliases and string literals.
Example
#if SEQAN3_HAS_CEREAL
# include <seqan3/test/tmp_directory.hpp>
# include <cereal/archives/binary.hpp>
# include <cereal/types/vector.hpp>
{
cereal::BinaryInputArchive archive(is);
archive(data);
}
{
cereal::BinaryOutputArchive archive(os);
archive(data);
}
int main()
{
seqan3::test::tmp_directory tmp{};
auto tmp_file = tmp.path() / "data.out" ;
store(vec, tmp_file);
load(vec2, tmp_file);
return 0;
}
#endif
Provides seqan3::debug_stream and related types.
debug_stream_type debug_stream
A global instance of seqan3::debug_stream_type.
Definition debug_stream.hpp:38
Attention The cereal library is an optional dependency of SeqAn, if it is not found no types satisfy this concept.
The documentation for this interface was generated from the following file: