Changeset 1234 in Sophya for trunk/SophyaExt/FitsIOServer/fitsfile.h
- Timestamp:
- Oct 13, 2000, 12:34:37 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1231 r1234 71 71 static string GetErrStatus(int status); 72 72 inline int statusF() const { return fits_status_;} 73 inline void firstImageOnPrimaryHeader(bool choice) {imageOnPrimary_=choice;} 73 74 74 75 … … 78 79 static void printerror(int&) ; 79 80 static void printerror(int&,char* texte) ; 80 inline void InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 1;81 fits_status_ = 0; }81 inline void InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 0; 82 fits_status_ = 0; imageOnPrimary_ = true;} 82 83 83 84 fitsfile *fptr_; /**< pointer to the FITS file, defined in fitsio.h */ … … 85 86 int hdunum_; /**< index of header to be read/written */ 86 87 int fits_status_; /**< last status returned by fitsio library. updated only by several methods */ 88 bool imageOnPrimary_; 87 89 88 90 }; … … 184 186 185 187 void InitNull(); 188 void getHeader(); 186 189 static void KeywordsIntoDVList(fitsfile* fileptr, DVList& dvl, int hdunum); 187 190 static void GetImageParameters (fitsfile* fileptr,int& bitpix,int& naxis,vector<int>& naxisn); … … 211 214 FitsOutFile(const char * flnm, WriteMode wrm = unknown ); 212 215 ~FitsOutFile() { ;}; 213 inline void InitNull() { imageOnPrimary_=false;}216 inline void InitNull() {;} 214 217 215 218 ////////////////////////////////////////////////////////// … … 224 227 225 228 226 inline void firstImageOnPrimaryHeader() {imageOnPrimary_=true;}227 229 void makeHeaderImageOnFits(char type, int nbdim, int* naxisn, DVList* dvl) ; 228 230 void PutImageToFits( int nbData, double* map) const; … … 261 263 void addKeywordsOfDVList(DVList& dvl) const; 262 264 263 bool imageOnPrimary_;264 265 265 266 };
Note:
See TracChangeset
for help on using the changeset viewer.