3 #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH
4 #define DUNE_GRID_COMMON_BACKUPRESTORE_HH
6 #include <dune/common/exceptions.hh>
39 template<
class Gr
id >
49 static void backup (
const Grid &grid,
const std::string &filename )
51 DUNE_THROW( NotImplemented,
"backup / restore not implemented." );
63 static void backup (
const Grid &grid, std::ostream &stream )
65 DUNE_THROW( NotImplemented,
"backup / restore not implemented." );
78 DUNE_THROW( NotImplemented,
"backup / restore not implemented." );
91 DUNE_THROW( NotImplemented,
"backup / restore not implemented." );
98 template<
class Gr
id >
105 #endif // #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH
static Grid * restore(const std::string &filename)
read a hierarchic grid from disk
Definition: common/backuprestore.hh:76
Include standard header files.
Definition: agrid.hh:59
facility for writing and reading grids
Definition: common/backuprestore.hh:40
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:388
static void backup(const Grid &grid, const std::string &filename)
write a hierarchic grid to disk
Definition: common/backuprestore.hh:49
static Grid * restore(std::istream &stream)
read a hierarchic grid from a stream
Definition: common/backuprestore.hh:89
static void backup(const Grid &grid, std::ostream &stream)
write a hierarchic grid into a stream
Definition: common/backuprestore.hh:63