AFEPack
EasyMesh.h
浏览该文件的文档。
00001 
00011 #ifndef _EasyMesh_h_
00012 #define _EasyMesh_h_
00013 
00014 #include <iostream>
00015 #include <string>
00016 #include <fstream>
00017 
00018 #include "Geometry.h"
00019 
00025 template <int DOW>
00026 class TriangleMesh: public Mesh<2,DOW>
00027 {
00028 public:
00029   TriangleMesh() {};
00030   TriangleMesh(const Mesh<2,DOW>&) {};
00031   ~TriangleMesh() {};
00032 public:
00033   void readData(const std::string&);
00034   void writeData(const std::string&) const;
00035   DeclException1(ExcMeshData, 
00036                  char *, 
00037                  << "Mesh data error: " << arg1);
00038 };
00039 
00040 class EasyMesh : public TriangleMesh<2>
00041 {
00042  public:
00043   void writeOpenDXData(const std::string&) const;
00044 };
00045 
00046 
00047 #endif //_EasyMesh_h_
00048