00001 #ifndef MESHFACTORY_H
00002 #define MESHFACTORY_H
00003
00004 #include "SundanceDefs.h"
00005
00006 #include "XMLObject.h"
00007 #include "Mesh.h"
00008
00009
00010 namespace Sundance
00011 {
00012
00013 using namespace TSF;
00014 using std::string;
00015
00016 using std::ostream;
00017
00018
00019
00020
00021
00022
00023
00024
00025 class MeshFactory
00026 {
00027 public:
00028 static Mesh getMeshByName(const string& name);
00029
00030 static Mesh createMesh(const XMLObject& xml);
00031
00032 static bool isMesh(const XMLObject& xml);
00033
00034 private:
00035
00036
00037
00038 static TSFHashtable<string, Mesh> meshes_;
00039 };
00040
00041
00042 }
00043 #endif