Changeset 1771 in Sophya for trunk/SophyaExt/FitsIOServer/fitsfile.h
- Timestamp:
- Nov 16, 2001, 11:26:58 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsfile.h
r1703 r1771 105 105 inline void firstImageOnPrimaryHeader(bool choice) {imageOnPrimary_=choice;} 106 106 inline int currentHeaderIndex() {return hdunum_;} 107 inline fitsfile* fitsfilePtr() {return fptr_;}108 107 109 108 110 109 protected: 111 110 112 void ResetStatus(int& status) ; 113 static void printerror(int&) ; 114 static void printerror(int&,char* texte) ; 115 static void printerrorAndContinue(int& status, char* texte); 116 inline void InitNull() {fptr_ = NULL; hdutype_= FitsExtensionType_NULL; hdunum_ = 0; 117 fits_status_ = 0; imageOnPrimary_ = true;} 111 void ResetStatus(int& status) ; 112 static void printerror(int&) ; 113 static void printerror(int&,char* texte) ; 114 static void printerrorAndContinue(int& status, char* texte); 115 inline void InitNull() 116 { 117 fptr_ = NULL; 118 hdutype_= FitsExtensionType_NULL; 119 hdunum_ = 0; 120 fits_status_ = 0; imageOnPrimary_ = true; 121 } 122 inline fitsfile* fitsfilePtr() const {return fptr_;} 123 124 125 118 126 fitsfile *fptr_; /**< pointer to the FITS file, defined in fitsio.h */ 119 127 FitsExtensionType hdutype_; /**< image or bintable ? */ … … 145 153 inline const DVList& DVListFromFits() const { return dvl_;} 146 154 155 void GetKeywordsFromHeader (int hdunum, list<FitsKeyword>& mots_cles) const; 156 157 147 158 DVList DVListFromPrimaryHeader() const; 148 159 void moveToFollowingHeader(); … … 179 190 /*! \return data type of the current IMAGE extension */ 180 191 inline FitsFile::FitsDataType ImageType() const {return imageDataType_;} 192 181 193 182 194 … … 237 249 238 250 void InitNull(); 239 void getHeader ();251 void getHeaderWithSophyaObject(); 240 252 static void KeywordsIntoDVList(fitsfile* fileptr, DVList& dvl, int hdunum); 241 253 static void GetImageParameters (fitsfile* fileptr,FitsDataType& dataType,int& naxis,vector<int>& naxisn);
Note:
See TracChangeset
for help on using the changeset viewer.