Ignore:
Timestamp:
Nov 15, 2000, 4:29:11 PM (25 years ago)
Author:
ansari
Message:

modifs returns de autoreader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsfile.h

    r1300 r1334  
    5555
    5656   enum FitsExtensionType {
     57     FitsExtensionType_NULL,
    5758     FitsExtensionType_IMAGE,
    5859     FitsExtensionType_ASCII_TBL,
    59      FitsExtensionType_BINARY_TBL
     60     FitsExtensionType_BINARY_TBL,
     61     FitsExtensionType_EOF,
     62     FitsExtensionType_ERROR
    6063   };
    6164   enum FitsDataType {
     
    8184   static  void printerror(int&) ;
    8285   static  void printerror(int&,char* texte) ;
    83    inline void  InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 0;
     86   inline void  InitNull() {fptr_ = NULL; hdutype_= FitsExtensionType_NULL; hdunum_ = 0;
    8487   fits_status_ = 0; imageOnPrimary_ = true;}
    8588   fitsfile *fptr_;     /**<  pointer to the FITS file, defined in fitsio.h */
    86    int hdutype_;        /**<  image or bintable ? */
     89   FitsExtensionType hdutype_;        /**<  image or bintable ? */
    8790   int hdunum_;         /**<   index of header to be read/written */
    8891   int fits_status_;    /**< last status returned by fitsio library. updated only by several methods */
     
    102105
    103106   static int  NbBlocks(char flnm[]);
     107   int  NbBlocks();
    104108   static void GetBlockType(char flnm[], int hdunum, FitsExtensionType& typeOfExtension, int& naxis, vector<int>& naxisn, FitsDataType& dataType, DVList& dvl  );
    105109   void        ReadHeader(int hdunum);
     
    126130
    127131/*! \return true if the current header  corresponds to a FITS image extension */
    128 inline bool IsFitsImage() const { return (hdutype_ == IMAGE_HDU);}
     132inline bool IsFitsImage() const { return (hdutype_ == FitsExtensionType_IMAGE);}
    129133
    130134
     
    152156
    153157/*! \return true if the current header  corresponds to a FITS ASCII or BINTABLE extension */
    154 inline bool IsFitsTable() const {return (hdutype_ == ASCII_TBL || hdutype_ == BINARY_TBL);}
     158inline bool IsFitsTable() const {return (hdutype_ == FitsExtensionType_ASCII_TBL || hdutype_ == FitsExtensionType_BINARY_TBL);}
    155159
    156160
     
    176180////////////////////////////////////////////////////////
    177181
     182/*! \return true if the current header  is beyond the maximum */
     183inline bool IsFitsEOF() const {return (hdutype_ == FitsExtensionType_EOF);}
     184/*! \return true if the current header  is incorrect, following a cfitsio, movavs error */
     185inline bool IsFitsERROR() const {return (hdutype_ == FitsExtensionType_ERROR);}
     186
    178187  int     NbColsFromFits() const;
    179188  int     NentriesFromFits(int nocol) const;
Note: See TracChangeset for help on using the changeset viewer.