Changeset 16890 for trunk/Mars/mcore/zfits.h
- Timestamp:
- 06/22/13 16:28:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/zfits.h
r16888 r16890 63 63 bool SkipNextRow() 64 64 { 65 if (!fTable.is Compressed)65 if (!fTable.is_compressed) 66 66 return fits::SkipNextRow(); 67 67 … … 76 76 virtual void StageRow(size_t row, char* dest) 77 77 { 78 if (!fTable.is Compressed)78 if (!fTable.is_compressed) 79 79 { 80 80 fits::StageRow(row, dest); … … 122 122 void InitCompressionReading() 123 123 { 124 if (!fTable.is Compressed)124 if (!fTable.is_compressed) 125 125 return; 126 126 … … 129 129 return; 130 130 131 if (fTable.is Compressed)132 { 133 for (auto it=fTable.sorted Cols.begin(); it!= fTable.sortedCols.end(); it++)131 if (fTable.is_compressed) 132 { 133 for (auto it=fTable.sorted_cols.begin(); it!= fTable.sorted_cols.end(); it++) 134 134 { 135 135 if (it->comp == kCompFACT) … … 146 146 } 147 147 148 fColumnOrdering.resize(fTable.sorted Cols.size());148 fColumnOrdering.resize(fTable.sorted_cols.size()); 149 149 for (auto it=fColumnOrdering.begin(); it != fColumnOrdering.end(); it++) 150 150 (*it) = kOrderByRow; 151 151 //Get compressed specific keywords 152 fNumTiles = fTable.is Compressed ? GetInt("NAXIS2") : 0;153 fNumRowsPerTile = fTable.is Compressed ? GetInt("ZTILELEN") : 0;152 fNumTiles = fTable.is_compressed ? GetInt("NAXIS2") : 0; 153 fNumRowsPerTile = fTable.is_compressed ? GetInt("ZTILELEN") : 0; 154 154 155 155 //give it some space for uncompressing … … 166 166 void MoveColumnDataToUserSpace(char* dest, const char* src, const Table::Column& c) 167 167 { 168 if (!fTable.is Compressed)168 if (!fTable.is_compressed) 169 169 { 170 170 fits::MoveColumnDataToUserSpace(dest, src, c); … … 334 334 335 335 uint32_t i=0; 336 for (auto it=fTable.sorted Cols.begin(); it!=fTable.sortedCols.end(); it++, i++)336 for (auto it=fTable.sorted_cols.begin(); it!=fTable.sorted_cols.end(); it++, i++) 337 337 { 338 338 char *buffer = fBuffer.data() + it->offset; // pointer to column (destination buffer) … … 433 433 434 434 //uncompress column by column 435 for (uint32_t i=0; i<fTable.sorted Cols.size(); i++)436 { 437 const fits::Table::Column &col = fTable.sorted Cols[i];435 for (uint32_t i=0; i<fTable.sorted_cols.size(); i++) 436 { 437 const fits::Table::Column &col = fTable.sorted_cols[i]; 438 438 if (col.num == 0) 439 439 continue; … … 524 524 { 525 525 //zero sized column do not have headers. Skip it 526 if (fTable.sorted Cols[i].num == 0)526 if (fTable.sorted_cols[i].num == 0) 527 527 { 528 528 catalog.back().push_back(make_pair(0,0));
Note:
See TracChangeset
for help on using the changeset viewer.