25 #ifndef GRIDCONTAINER_SERIALIZE_H 26 #define GRIDCONTAINER_SERIALIZE_H 30 #include <boost/archive/binary_iarchive.hpp> 31 #include <boost/archive/binary_oarchive.hpp> 32 #include <boost/filesystem.hpp> 37 namespace GridContainer {
56 template<
typename GridCellManager,
typename... AxesTypes>
59 const GridContainer<GridCellManager, AxesTypes...>* ptr = &grid;
60 boost::archive::binary_oarchive boa {out};
80 template<
typename Gr
idType>
82 boost::archive::binary_iarchive bia {in};
115 template<
typename GridCellManager,
typename... AxesTypes>
118 const GridContainer<GridCellManager, AxesTypes...>& grid);
131 template<
typename Gr
idType>
132 GridType
gridFitsImport(
const boost::filesystem::path& filename,
int hdu_index);
void gridFitsExport(const boost::filesystem::path &filename, const std::string &hdu_name, const GridContainer< GridCellManager, AxesTypes... > &grid)
Exports a Grid as a FITS file.
void gridBinaryExport(std::ostream &out, const GridContainer< GridCellManager, AxesTypes... > &grid)
Exports to the given output stream the given grid.
GridType gridBinaryImport(std::istream &in)
Imports from the given stream a grid.
GridType gridFitsImport(const boost::filesystem::path &filename, int hdu_index)
Imports a Grid from a FITS file.