[MOAB-dev] r5617 - in MOAB/trunk/src: . io

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Jun 29 14:01:12 CDT 2012


Author: tautges
Date: 2012-06-29 14:01:12 -0500 (Fri, 29 Jun 2012)
New Revision: 5617

Added:
   MOAB/trunk/src/io/ReadTxt.cpp
   MOAB/trunk/src/io/ReadTxt.hpp
Modified:
   MOAB/trunk/src/ReaderWriterSet.cpp
   MOAB/trunk/src/io/Makefile.am
Log:
Adding a skeleton txt reader for Farah.




Modified: MOAB/trunk/src/ReaderWriterSet.cpp
===================================================================
--- MOAB/trunk/src/ReaderWriterSet.cpp	2012-06-29 18:16:04 UTC (rev 5616)
+++ MOAB/trunk/src/ReaderWriterSet.cpp	2012-06-29 19:01:12 UTC (rev 5617)
@@ -41,6 +41,7 @@
 #include "WriteSTL.hpp"
 #include "WriteGmsh.hpp"
 #include "WriteSmf.hpp"
+#include "ReadTxt.hpp"
 
 #ifdef NETCDF_FILE
 #  include "ReadNCDF.hpp"
@@ -150,6 +151,9 @@
 
   const char* tetgen_sufxs[] = { "node", "ele", "face", "edge", NULL };
   register_factory( ReadTetGen::factory, 0, "TetGen output files", tetgen_sufxs, "TETGEN" );
+
+  const char* txt_sufxs[] = { "txt", NULL };
+  register_factory( ReadTxt::factory, 0, "Txt input files", txt_sufxs, "TXT" );
 }
 
 

Modified: MOAB/trunk/src/io/Makefile.am
===================================================================
--- MOAB/trunk/src/io/Makefile.am	2012-06-29 18:16:04 UTC (rev 5616)
+++ MOAB/trunk/src/io/Makefile.am	2012-06-29 19:01:12 UTC (rev 5617)
@@ -95,6 +95,8 @@
   ReadSTL.hpp \
   ReadTetGen.cpp \
   ReadTetGen.hpp \
+  ReadTxt.cpp \
+  ReadTxt.hpp \
   ReadVtk.cpp \
   ReadVtk.hpp \
   SMF_State.cpp \

Added: MOAB/trunk/src/io/ReadTxt.cpp
===================================================================
--- MOAB/trunk/src/io/ReadTxt.cpp	                        (rev 0)
+++ MOAB/trunk/src/io/ReadTxt.cpp	2012-06-29 19:01:12 UTC (rev 5617)
@@ -0,0 +1,78 @@
+/**
+ * MOAB, a Mesh-Oriented datABase, is a software component for creating,
+ * storing and accessing finite element mesh data.
+ * 
+ * Copyright 2004 Sandia Corporation.  Under the terms of Contract
+ * DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government
+ * retains certain rights in this software.
+ * 
+ * This library is free software; you can redistribute it and/or


More information about the moab-dev mailing list