Changeset 11550 for trunk/Mars/mbase
- Timestamp:
- 07/24/11 10:49:37 (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/fits.h
r11487 r11550 348 348 MFits(const string &fname) : MZlib(fname.c_str()) 349 349 { 350 char simple[6]; 351 read(simple, 6); 352 if (!good()) 353 return; 354 355 if (memcmp(simple, "SIMPLE", 6)) 356 { 357 gLog << err << "File is not a FITS file." << endl; 358 clear(rdstate()|ios::badbit); 359 return; 360 } 361 362 seekpos(0); 363 350 364 while (good()) 351 365 {
Note:
See TracChangeset
for help on using the changeset viewer.