dune-grid  2.2.0
common/backuprestore.hh
Go to the documentation of this file.
1 #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH
2 #define DUNE_GRID_COMMON_BACKUPRESTORE_HH
3 
4 #include <dune/common/exceptions.hh>
5 
6 namespace Dune
7 {
8 
37  template< class Grid >
39  {
48  static void backup ( const Grid &grid, const std::string &path, const std::string &fileprefix )
49  {
50  DUNE_THROW( NotImplemented, "backup / restore not implemented." );
51  }
52 
62  static void backup ( const Grid &grid, const std::ostream &stream )
63  {
64  DUNE_THROW( NotImplemented, "backup / restore not implemented." );
65  }
66 
76  static Grid *restore ( const std::string &path, const std::string &fileprefix )
77  {
78  DUNE_THROW( NotImplemented, "backup / restore not implemented." );
79  }
80 
89  static Grid *restore ( const std::istream &stream )
90  {
91  DUNE_THROW( NotImplemented, "backup / restore not implemented." );
92  }
93  };
94 
95 } // namespace Dune
96 
97 #endif // #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH