From 2b8a1d846217ea369611310bfbf143df1acfeb99 Mon Sep 17 00:00:00 2001 From: dmayerich Date: Fri, 4 Oct 2013 15:41:16 -0500 Subject: [PATCH] added an error if an FFT is unavailable --- main.cpp | 4 ++-- options.h | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 options.h diff --git a/main.cpp b/main.cpp index 216d29c..54a5f72 100644 --- a/main.cpp +++ b/main.cpp @@ -11,7 +11,7 @@ using namespace std; #include #endif -#include "rts/material.h" +#include "rts/optics/material.h" //#include "options.h" #include @@ -30,7 +30,7 @@ int main(int argc, char* argv[]) po::options_description desc("Allowed options"); desc.add_options() ("help,h", "Display this help message.") - ("input-file,i", po::value(), "Input file containing material information.") + ("input-file,i", po::value()->default_value("etaToluene.txt"), "Input file containing material information.") ("input-format,f", po::value()->default_value("wavenumber,n,k"), "Format string identifying the order of material properties in the input file. Options include: microns, wavenumber, n (real RI), k (imaginary RI), A (absorbance), Xp (real Chi), Xpp (imaginary Chi).\n\nThe default [microns,n,k] will load a material file with columns representing the wavelength in microns, followed by the real and imaginary parts of the refractive index.") ("output-file,o", po::value()->default_value("out.txt"), "Output file containing the processed material information.") ("output-format,t", po::value()->default_value("wavenumber,n,k"), "Format string for the output file (similar to --input-format).") diff --git a/options.h b/options.h new file mode 100644 index 0000000..25a2714 --- /dev/null +++ b/options.h @@ -0,0 +1,41 @@ +#ifndef RTS_OPTIONS_H +#define RTS_OPTIONS_H + +#include + +enum opt_type {optInt, optDouble, optStr, optFlag}; + +struct opt +{ + //long name for the option + std::string _lname; + + //short name for the option + char _sname; + + //help string + std::string _help; + + //store the type + opt_type _type; + + //data is stored in a vector of void pointers + std::vector _data; +}; + +class rtOptions +{ + std::vector optArray; + + int addOption(char sname, std::string lname, std::string help, opt_type type = optStr) + { + + + } + +}; + + + + +#endif \ No newline at end of file -- libgit2 0.21.4