Ignore:
Timestamp:
Nov 8, 2000, 11:02:58 AM (25 years ago)
Author:
ansari
Message:

classe FITS_AutoReader

File:
1 edited

Legend:

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

    r1246 r1300  
    6060   };
    6161   enum FitsDataType {
     62     FitsDataType_NULL,
    6263     FitsDataType_double,
    6364     FitsDataType_float,
    6465     FitsDataType_int,
    6566     FitsDataType_char,
    66      FitsDataType_ASCII
     67     FitsDataType_ASCII,
    6768   };
    6869
     
    7273   inline  int   statusF() const { return fits_status_;}
    7374   inline void firstImageOnPrimaryHeader(bool choice) {imageOnPrimary_=choice;}
     75   inline int currentHeaderIndex() {return hdunum_;}
    7476 
    7577
     
    8183   inline void  InitNull() {fptr_ = NULL; hdutype_= 0; hdunum_ = 0;
    8284   fits_status_ = 0; imageOnPrimary_ = true;}
    83 
    8485   fitsfile *fptr_;     /**<  pointer to the FITS file, defined in fitsio.h */
    8586   int hdutype_;        /**<  image or bintable ? */
     
    102103   static int  NbBlocks(char flnm[]);
    103104   static void GetBlockType(char flnm[], int hdunum, FitsExtensionType& typeOfExtension, int& naxis, vector<int>& naxisn, FitsDataType& dataType, DVList& dvl  );
    104    void        ReadFInit(int hdunum);
     105   void        ReadHeader(int hdunum);
    105106 
    106107  /*! \return a reference on a DVList containing the keywords from FITS file */
     
    139140inline int nbOfImageData() const { return nbData_; }
    140141
     142/*! \return data type of the current IMAGE extension */
     143inline FitsFile::FitsDataType ImageType() const {return imageDataType_;}
    141144
    142145
     
    155158                                  vector<int>& repeat,
    156159                                  vector<string>& noms,
    157                                   vector<char>& types,   
     160                                  vector<FitsDataType>& types,   
    158161                                  vector<int>&  taille_des_chaines);
    159  char   ColTypeFromFits(int nocol) const;
     162 FitsDataType   ColTypeFromFits(int nocol) const;
    160163 string ColNameFromFits(int nocol) const;
    161164 int    ColStringLengthFromFits(int nocol) const;
     
    188191void getHeader();
    189192static void KeywordsIntoDVList(fitsfile* fileptr, DVList& dvl, int hdunum);
    190 static  void GetImageParameters (fitsfile* fileptr,int& bitpix,int& naxis,vector<int>& naxisn);
    191 
    192  int bitpix_;          /**< fits-Image parameter */
     193static  void GetImageParameters (fitsfile* fileptr,FitsDataType& dataType,int& naxis,vector<int>& naxisn);
     194
     195 FitsDataType imageDataType_;          /**< fits-Image parameter (bitpix)*/
    193196 int naxis_;           /**< fits-Image parameter */
    194197 vector<int> naxisn_;  /**< fits-Image parameters : sizes of dimensions */
     
    198201 int nbcols_;          /**< Bintable parameter */
    199202 vector<string> noms_; /**< Bintable parameter: column names */
    200  vector<char> types_;  /**< Bintable parameters: types of columns (D: double, E: float, I: integers,  A: char*) */
     203 vector<FitsDataType> types_;  /**< Bintable parameters: types of columns (D: double, E: float, I: integers,  A: char*) */
    201204 DVList dvl_;          /**< DVList for transferring keywords */
    202205 vector<int>  taille_des_chaines_; /**< Bintable parameters:   length of the char* variables */
Note: See TracChangeset for help on using the changeset viewer.