xdrpp
RFC4506 XDR compiler and message library
Namespaces
cereal.h File Reference

Interface for cereal serealization back ends. More...

#include <type_traits>
#include <cereal/cereal.hpp>
#include <cereal/types/array.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/details/traits.hpp>
#include <xdrpp/types.h>
Include dependency graph for cereal.h:

Go to the source code of this file.

Namespaces

 xdr
 Most of the xdrpp library is encapsulated in the xdr namespace.
 

Detailed Description

Interface for cereal serealization back ends.

By including this file, you can archive any XDR data structure using any format supported by cereal. Note that only the binary structures actually sanity-check the lengths of strings. You don't need to do anything with this file other than include it. Simply follow the cereal archive documentation to proceed, without the need to implement your own archive (or save/load) methods.

Note you still need to include the cereal archive headers you want to use, e.g., #include <cereal/archives/json.hpp>.

Definition in file cereal.h.