[MOAB-dev] r4355 - in MOAB/trunk/tools: . dagmc
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Mon Dec 13 11:10:05 CST 2010
Author: kraftche
Date: 2010-12-13 11:10:05 -0600 (Mon, 13 Dec 2010)
New Revision: 4355
Added:
MOAB/trunk/tools/ProgOptions.cpp
MOAB/trunk/tools/ProgOptions.hpp
Removed:
MOAB/trunk/tools/program_opt.cpp
MOAB/trunk/tools/program_opt.hpp
Modified:
MOAB/trunk/tools/Makefile.am
MOAB/trunk/tools/dagmc/Makefile.am
MOAB/trunk/tools/dagmc/dagmc_preproc.cpp
MOAB/trunk/tools/test_prog_opt.cpp
Log:
rename program_opt.?pp as ProgOptions.?pp
Modified: MOAB/trunk/tools/Makefile.am
===================================================================
--- MOAB/trunk/tools/Makefile.am 2010-12-13 16:42:52 UTC (rev 4354)
+++ MOAB/trunk/tools/Makefile.am 2010-12-13 17:10:05 UTC (rev 4355)
@@ -116,7 +116,7 @@
noinst_PROGRAMS = $(parread)
noinst_LTLIBRARIES = libprogram_opt.la
-libprogram_opt_la_SOURCES = program_opt.cpp program_opt.hpp
+libprogram_opt_la_SOURCES = ProgOptions.cpp ProgOptions.hpp
SUBDIRS = . \
$(refiner_DIR) \
Copied: MOAB/trunk/tools/ProgOptions.cpp (from rev 4354, MOAB/trunk/tools/program_opt.cpp)
===================================================================
--- MOAB/trunk/tools/ProgOptions.cpp (rev 0)
+++ MOAB/trunk/tools/ProgOptions.cpp 2010-12-13 17:10:05 UTC (rev 4355)
@@ -0,0 +1,760 @@
+#include <iostream>
+#include <sstream>
+#include <iomanip>
+#include <cstdlib>
+#include <list>
+#include <limits>
+
+#include <assert.h>
+#include <string.h>
+
+#include "ProgOptions.hpp"
+#ifdef USE_MPI
+# include "moab_mpi.h"
+#endif
+
+class ProgOpt{
+
+ enum types{
+ FLAG = 0,
+ INT,
+ REAL,
+ STRING,
+ INT_VECT
+ };
+
+ template <typename T>
+ static types get_type(){ return FLAG; } //specialized for other types at bottom of this file
+
+
+ std::string shortname, longname;
+ std::vector< std::string > args;
+ enum types type;
More information about the moab-dev
mailing list