dune-grid  2.2.0
common/backuprestore.hh
Go to the documentation of this file.
00001 #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH
00002 #define DUNE_GRID_COMMON_BACKUPRESTORE_HH
00003 
00004 #include <dune/common/exceptions.hh>
00005 
00006 namespace Dune
00007 {
00008 
00037   template< class Grid >
00038   struct BackupRestoreFacility
00039   {
00048     static void backup ( const Grid &grid, const std::string &path, const std::string &fileprefix )
00049     {
00050       DUNE_THROW( NotImplemented, "backup / restore not implemented." );
00051     }
00052 
00062     static void backup ( const Grid &grid, const std::ostream &stream )
00063     {
00064       DUNE_THROW( NotImplemented, "backup / restore not implemented." );
00065     }
00066 
00076     static Grid *restore ( const std::string &path, const std::string &fileprefix )
00077     {
00078       DUNE_THROW( NotImplemented, "backup / restore not implemented." );
00079     }
00080 
00089     static Grid *restore ( const std::istream &stream )
00090     {
00091       DUNE_THROW( NotImplemented, "backup / restore not implemented." );
00092     }
00093   };
00094 
00095 } // namespace Dune
00096 
00097 #endif // #ifndef DUNE_GRID_COMMON_BACKUPRESTORE_HH