FACT++  1.0
void SetupConfiguration ( Configuration conf)

Definition at line 1131 of file fitsdump.cc.

References Configuration::AddOptions(), po_switch(), and Configuration::SetArgumentPositions().

Referenced by main().

1132 {
1133  po::options_description configs("Fitsdump options");
1134  configs.add_options()
1135  ("filecontent", po_switch(), "List the number of tables in the file, along with their name")
1136  ("header,h", po_switch(), "Dump header of given table")
1137  ("list,l", po_switch(), "List all tables and columns in file")
1138  ("fitsfile", var<string>()
1139 #if BOOST_VERSION >= 104200
1140  ->required()
1141 #endif
1142  , "Name of FITS file")
1143  ("col,c", vars<string>(), "List of columns to dump\narg is a list of columns, separated by a space.\nAdditionnally, a list of sub-columns can be added\ne.g. Data[3] will dump sub-column 3 of column Data\nData[3:4] will dump sub-columns 3 and 4\nOmitting this argument dump the entire column\nnote: all indices start at zero")
1144  ("outfile,o", var<string>("-"), "Name of output file (-:/dev/stdout)")
1145  ("precision,p", var<int>(20), "Precision of ofstream")
1146  ("stat,s", po_switch(), "Perform statistics instead of dump")
1147  ("minmax,m", po_switch(), "Calculates min and max of data")
1148  ("nozero,z", po_switch(), "skip 0 values for stats")
1149  ("fixed", po_switch(), "Switch output stream to floating point values in fixed-point notation")
1150  ("scientific", po_switch(), "Switch output stream to floating point values in scientific notation")
1151  ("%,%", vars<string>(), "Format for the output (currently not available in root-mode)")
1152  ("force", po_switch(), "Force reading the fits file even if END key is missing")
1153  ("first", var<size_t>(size_t(0)), "First number of row to read")
1154  ("limit", var<size_t>(size_t(0)), "Limit for the maximum number of rows to read (0=unlimited)")
1155  ("tablename,t", var<string>(""), "Name of the table to open. If not specified, first binary table is opened")
1156 #ifdef HAVE_ROOT
1157  ("root,r", po_switch(), "Enable root mode")
1158  ("filter,f", var<string>(""), "Filter to restrict the selection of events (e.g. '[0]>10 && [0]<20'; does not work with stat and minmax yet)")
1159 #endif
1160  ;
1161 
1162  po::positional_options_description p;
1163  p.add("fitsfile", 1); // The first positional options
1164  p.add("col", -1); // All others
1165 
1166  conf.AddOptions(configs);
1167  conf.SetArgumentPositions(p);
1168 }
po::typed_value< bool > * po_switch()
void SetArgumentPositions(const po::positional_options_description &desc)
void AddOptions(const po::options_description &opt, bool visible=true)
Definition: Configuration.h:92
double p
Definition: palObs.c:169

+ Here is the call graph for this function:

+ Here is the caller graph for this function: