[MOAB-dev] r5533 - MOAB/trunk/src/io

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri May 25 03:47:27 CDT 2012


Author: tautges
Date: 2012-05-25 03:47:26 -0500 (Fri, 25 May 2012)
New Revision: 5533

Added:
   MOAB/trunk/src/io/DamselUtil.hpp
Modified:
   MOAB/trunk/src/io/ReadDamsel.cpp
   MOAB/trunk/src/io/ReadDamsel.hpp
   MOAB/trunk/src/io/WriteDamsel.cpp
Log:
Updating Damsel work.



Added: MOAB/trunk/src/io/DamselUtil.hpp
===================================================================
--- MOAB/trunk/src/io/DamselUtil.hpp	                        (rev 0)
+++ MOAB/trunk/src/io/DamselUtil.hpp	2012-05-25 08:47:26 UTC (rev 5533)
@@ -0,0 +1,75 @@
+#ifndef READDAMSEL_HPP
+#define READDAMSEL_HPP
+
+#include "moab/Forward.hpp"
+#include "DebugOutput.hpp"
+
+#include "damsel.h"
+
+namespace moab {
+
+class DamselUtil 
+{
+public:
+  //! needs to be a constructor to initialize dtom_data_type
+  DamselUtil();
+
+  static damsel_data_type mtod_data_type[MB_MAX_DATA_TYPE];
+
+  std::map<damsel_data_type,DataType> dtom_data_type;
+
+  static enum damsel_entity_type mtod_entity_type[MBMAXTYPE];
+
+  static enum EntityType dtom_entity_type[DAMSEL_ENTITY_ALL_TYPES];
+};
+
+damsel_entity_type DamselUtil::mtod_entity_type[] = {
+    DAMSEL_ENTITY_TYPE_VERTEX,      //  MBVERTEX
+    DAMSEL_ENTITY_TYPE_EDGE,  // MBEDGE
+    DAMSEL_ENTITY_TYPE_TRI, // MBTRI
+    DAMSEL_ENTITY_TYPE_QUAD, //   MBQUAD
+    DAMSEL_ENTITY_TYPE_POLYGON, //   MBPOLYGON
+    DAMSEL_ENTITY_TYPE_TET,//  MBTET
+    DAMSEL_ENTITY_TYPE_PYRAMID,  //   MBPYRAMID
+    DAMSEL_ENTITY_TYPE_PRISM,  //   MBPRISM
+    DAMSEL_ENTITY_TYPE_UNDEFINED, // MBKNIFE
+    DAMSEL_ENTITY_TYPE_HEX,  //   MBHEX,
+    DAMSEL_ENTITY_TYPE_POLYHEDRON, //   MBPOLYHEDRON
+    DAMSEL_ENTITY_TYPE_UNDEFINED,   //   MBENTITYSET
+    DAMSEL_ENTITY_TYPE_ALL_TYPES // MBMAXTYPE  /**<
+};
+
+EntityType DamselUtil::dtom_entity_type[] = {
+    MBVERTEX,      //  MBVERTEX
+    MBEDGE,  // MBEDGE
+    MBTRI, // MBTRI
+    MBQUAD, //   MBQUAD


More information about the moab-dev mailing list