amirameshreader.hh
00001 #ifndef DUNE_AMIRAMESH_READER_HH
00002 #define DUNE_AMIRAMESH_READER_HH
00003
00004 #include <string>
00005
00006 #include <amiramesh/AmiraMesh.h>
00007
00008 namespace Dune {
00009
00014 template<class GridType>
00015 class AmiraMeshReader {
00016
00017 public:
00018
00024 static void read(GridType& grid,
00025 const std::string& filename);
00026
00032 template<class DiscFuncType>
00033 static void readFunction(DiscFuncType& f, const std::string& filename);
00034
00035 };
00036
00037 }
00038
00039
00040 template<class GridType>
00041 void Dune::AmiraMeshReader<GridType>::read(GridType& grid,
00042 const std::string& filename)
00043 {
00044 DUNE_THROW(IOError, "No AmiraMesh reading has been implemented for " << grid.name() << "!");
00045 }
00046
00047 #include "amiramesh/amirameshreader.cc"
00048
00049
00050 #ifdef HAVE_UG
00051 #include "amiramesh/amuggridreader.hh"
00052 #endif
00053
00054 #endif