Changeset 17305 for trunk/Mars/mcore/zfits.h
- Timestamp:
- 10/22/13 11:03:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/zfits.h
r17282 r17305 20 20 // Basic constructor 21 21 zfits(const std::string& fname, const std::string& tableName="", bool force=false) 22 : f NumTiles(0), fNumRowsPerTile(0), fCurrentRow(-1), fHeapOff(0), fTileSize(0)22 : fCatalogInitialized(false), fNumTiles(0), fNumRowsPerTile(0), fCurrentRow(-1), fHeapOff(0), fTileSize(0) 23 23 { 24 24 open(fname.c_str()); 25 25 Constructor(fname, "", tableName, force); 26 InitCompressionReading();26 // InitCompressionReading(); 27 27 } 28 28 29 29 // Alternative contstructor 30 30 zfits(const std::string& fname, const std::string& fout, const std::string& tableName, bool force=false) 31 : f NumTiles(0), fNumRowsPerTile(0), fCurrentRow(-1), fHeapOff(0), fTileSize(0)31 : fCatalogInitialized(false), fNumTiles(0), fNumRowsPerTile(0), fCurrentRow(-1), fHeapOff(0), fTileSize(0) 32 32 { 33 33 open(fname.c_str()); 34 34 Constructor(fname, fout, tableName, force); 35 InitCompressionReading();35 // InitCompressionReading(); 36 36 } 37 37 … … 94 94 void InitCompressionReading() 95 95 { 96 fCatalogInitialized = true; 97 96 98 if (!fTable.is_compressed) 97 99 return; … … 143 145 memcpy(dest, src, c.num*c.size); 144 146 } 147 148 bool fCatalogInitialized; 145 149 146 150 std::vector<char> fBuffer; ///<store the uncompressed rows … … 278 282 return false; 279 283 284 if (!fCatalogInitialized) 285 InitCompressionReading(); 286 280 287 const uint32_t requestedTile = rowNum/fNumRowsPerTile; 281 288 const uint32_t currentTile = fCurrentRow/fNumRowsPerTile;
Note:
See TracChangeset
for help on using the changeset viewer.