Ignore:
Timestamp:
Jan 11, 2007, 7:07:52 PM (19 years ago)
Author:
cmv
Message:

gestion gros fichiers FITS dans fabtcolread et fabtwriter cmv 11/01/2007

File:
1 edited

Legend:

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

    r3114 r3128  
    3434  //! Write a long value in Fits header.
    3535  void WriteKey(const char *keyname,long val,char* comment=NULL);
     36  //! Write a long long value in Fits header.
     37  void WriteKey(const char *keyname,LONGLONG val,char* comment=NULL);
    3638  //! Write a string value in Fits header.
    3739  void WriteKey(const char *keyname,string val,char* comment=NULL);
     
    4345
    4446  //! Return the number of overflows managed by cfitsio
    45   inline unsigned long GetNOverFlow(void) {return NOverFlow;}
     47  inline LONGLONG GetNOverFlow(void) {return NOverFlow;}
    4648
    4749  //! Return the c-fitsio file pointer
    4850  inline fitsfile * GetFitsPtr() { return FitsPtr; }
    4951protected:
    50   struct KeyDouble {string keyname; double val; string comment;};
    51   struct KeyLong   {string keyname; long   val; string comment;};
    52   struct KeyString {string keyname; string val; string comment;};
     52  struct KeyDouble   {string keyname; double   val; string comment;};
     53  struct KeyLong     {string keyname; long     val; string comment;};
     54  struct KeyLongLong {string keyname; LONGLONG val; string comment;};
     55  struct KeyString   {string keyname; string   val; string comment;};
    5356
    5457  void cr_or_upd_fits(const char *cfname,bool update,int lp);
    5558
    5659  void writekeys(void);
    57   void printerrorwrite(const char* type,int col,long row,int sta);
     60  void printerrorwrite(const char* type,int col,LONGLONG row,int sta);
    5861  void printerror(int sta) const;
    5962
     
    6366  unsigned short DbgLevel;
    6467  fitsfile *FitsPtr;
    65   unsigned long NOverFlow;
     68  LONGLONG NOverFlow;
    6669
    67   vector<struct KeyDouble> DoubleKey;
    68   vector<struct KeyLong>   LongKey;
    69   vector<struct KeyString> StringKey;
     70  vector<struct KeyDouble>   DoubleKey;
     71  vector<struct KeyLong>     LongKey;
     72  vector<struct KeyLongLong> LongLongKey;
     73  vector<struct KeyString>   StringKey;
    7074};
    7175
     
    9599     {return addcol(label,tform,tunit,datatype);}
    96100
    97   void Write(int col,long row,int_1 val);
    98   void Write(int col,long row,uint_1 val);
    99   void Write(int col,long row,int_2 val);
    100   void Write(int col,long row,uint_2 val);
    101   void Write(int col,long row,int_4 val);
    102   void Write(int col,long row,uint_4 val);
    103   void Write(int col,long row,int_8 val);
    104   void Write(int col,long row,float val);
    105   void Write(int col,long row,double val);
    106   long Write(int col,long row,TVector<uint_2>& val);
    107   long Write(int col,long row,TVector<int_4>& val);
    108   long Write(int col,long row,TVector<int_8>& val);
    109   long Write(int col,long row,TVector<float>& val);
    110   long Write(int col,long row,TVector<double>& val);
     101  void Write(int col,LONGLONG row,int_1 val);
     102  void Write(int col,LONGLONG row,uint_1 val);
     103  void Write(int col,LONGLONG row,int_2 val);
     104  void Write(int col,LONGLONG row,uint_2 val);
     105  void Write(int col,LONGLONG row,int_4 val);
     106  void Write(int col,LONGLONG row,uint_4 val);
     107  void Write(int col,LONGLONG row,int_8 val);
     108  void Write(int col,LONGLONG row,float val);
     109  void Write(int col,LONGLONG row,double val);
     110  LONGLONG Write(int col,LONGLONG row,TVector<uint_2>& val);
     111  LONGLONG Write(int col,LONGLONG row,TVector<int_4>& val);
     112  LONGLONG Write(int col,LONGLONG row,TVector<int_8>& val);
     113  LONGLONG Write(int col,LONGLONG row,TVector<float>& val);
     114  LONGLONG Write(int col,LONGLONG row,TVector<double>& val);
    111115
    112116  //! Return the number of created columns
     
    153157
    154158  int BitPix;
    155   long Naxis[2];
     159  LONGLONG Naxis[2];
    156160  bool FirstTime;
    157161};
     
    182186
    183187  int BitPix;
    184   long Naxis[3];
     188  LONGLONG Naxis[3];
    185189  bool FirstTime;
    186190};
Note: See TracChangeset for help on using the changeset viewer.