- Timestamp:
- 02/08/12 23:10:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsdump.cc
r12850 r12877 83 83 // int WriteRow(ostream &, const vector<MyColumn*> &, const vector<int> &, unsigned char *, const vector<pair<int, int> >&) const; 84 84 85 bool OpenFile(const string & ); /// Open a file85 bool OpenFile(const string &, bool); /// Open a file 86 86 bool OpenTable(const string &); /// Open a table 87 87 … … 178 178 //! Loads the fits file based on the current parameters 179 179 // 180 bool FitsDumper::OpenFile(const string &filename )180 bool FitsDumper::OpenFile(const string &filename, bool force) 181 181 { 182 182 if (fFile) … … 187 187 188 188 try { 189 fFile = new fits(filename );189 fFile = new fits(filename, force); 190 190 } 191 191 catch (std::runtime_error e) … … 464 464 if (conf.Has("fitsfile")) 465 465 { 466 if (!OpenFile(conf.Get<string>("fitsfile") ))466 if (!OpenFile(conf.Get<string>("fitsfile"), conf.Get<bool>("force"))) 467 467 return -1; 468 468 } … … 1400 1400 ("tstart,a", po_switch(), "Give the mjdStart from reading the file data") 1401 1401 ("tstop,b", po_switch(), "Give the mjdStop from reading the file data") 1402 ("force", po_switch(), "Force reading the fits file even if END key is missing") 1402 1403 #ifdef PLOTTING_PLEASE 1403 1404 ("graph,g", po_switch(), "Plot the columns instead of dumping them")
Note:
See TracChangeset
for help on using the changeset viewer.