Ignore:
Timestamp:
Jun 15, 2000, 12:22:23 PM (25 years ago)
Author:
ansari
Message:

modifs pour introduction lecteur de fits par lignes

File:
1 edited

Legend:

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

    r972 r1047  
    2222FITS_XNTuple(char inputfile[],int hdunum=2);
    2323FITS_XNTuple(const XNTuple & obj);
     24FITS_XNTuple(XNTuple* obj);
    2425~FITS_XNTuple();
     26 void Read(char inputfile[],int hdunum=2);
     27
     28/*!
     29fill the XNTuple only with lines from firstLine-th to (firstLine+numberOfLines-1)-th of the FITS-file inputfile.
     30\param <firstLine>  first line  to be read (the first line of the file is numbered 0)
     31\param <numberOfLines>  number of lines to be read
     32*/
     33void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=2);
    2534void Write(char outputfile[], bool OldFile=false);
    2635inline operator XNTuple() { return(*dobj_); }
     
    2938
    3039  // implementation de FitsFile
    31   virtual void  ReadFromFits(FitsFile& fn);
    32 virtual void    WriteToFits(FitsFile& fn);
     40//  virtual void  ReadFromFits(FitsFile& fn);
     41 virtual void  ReadFromFits();
     42virtual void    WriteToFits();
    3343void*   getColFromObj(int colNr);
    3444double* getColDFromObj(int colNr);
     
    3747char**  getColSFromObj(int colNr);
    3848
     49 private :
     50
     51 void Clean();
     52
     53inline void InitNull()
     54   {
     55     fistLineToBeRead_= -1;
     56     numberOfLinesToBeRead_= -1;
     57     dcolumn_ = NULL;
     58     fcolumn_ = NULL;
     59     icolumn_ = NULL;
     60     ccolumn_ = NULL;
     61   }
     62
    3963  // attributs de classe
    4064  XNTuple* dobj_;
    41   bool    ownobj;
     65  bool    ownobj_;
     66  int fistLineToBeRead_;
     67  int numberOfLinesToBeRead_;
    4268  double* dcolumn_;
    4369  float*  fcolumn_;
Note: See TracChangeset for help on using the changeset viewer.