00001 #ifndef DUNE_AMIRAMESH_READER_HH
00002 #define DUNE_AMIRAMESH_READER_HH
00003
00004 #include <string>
00005 #include <dune/common/array.hh>
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
00036 AmiraMeshReader() {}
00037
00038 };
00039
00040 }
00041
00042
00043 template<class GridType>
00044 void Dune::AmiraMeshReader<GridType>::read(GridType& grid,
00045 const std::string& filename)
00046 {
00047 DUNE_THROW(IOError, "No AmiraMesh reading has been implemented for " << grid.name() << "!");
00048 }
00049
00050 #include "amiramesh/amirameshreader.cc"
00051
00052
00053 #ifdef HAVE_UG
00054 #include "amiramesh/amuggridreader.hh"
00055 #endif
00056
00057 #endif