Changeset 17259 for trunk/Mars
- Timestamp:
- 10/18/13 16:50:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/fits.h
r17216 r17259 564 564 } 565 565 566 void Constructor(const string &fname, string fout, const string& tableName, bool force )566 void Constructor(const string &fname, string fout, const string& tableName, bool force, int tableNumber=-1) 567 567 { 568 568 char simple[10]; … … 570 570 if (!good()) 571 571 return; 572 573 int current_table = 0; 572 574 573 575 if (memcmp(simple, "SIMPLE = ", 10)) … … 649 651 // skip the current table? 650 652 if ((!tableName.empty() && tableName!=fTable.Get<string>("EXTNAME")) || 651 ( tableName.empty() && "ZDrsCellOffsets"==fTable.Get<string>("EXTNAME"))) 653 ( tableName.empty() && "ZDrsCellOffsets"==fTable.Get<string>("EXTNAME")) || 654 (tableNumber != -1)) 652 655 { 656 if (current_table == tableNumber) 657 { 658 fBufferRow.resize(fTable.bytes_per_row + 8-fTable.bytes_per_row%4); 659 fBufferDat.resize(fTable.bytes_per_row); 660 661 break; 662 } 653 663 const streamoff skip = fTable.GetTotalBytes(); 654 664 seekg(skip, ios_base::cur); 655 665 656 666 fChkHeader.reset(); 667 current_table++; 657 668 658 669 continue;
Note:
See TracChangeset
for help on using the changeset viewer.