Ignore:
Timestamp:
Aug 24, 2000, 12:18:02 PM (25 years ago)
Author:
ansari
Message:

structuration a la ppersist+ convention sur hdu

File:
1 edited

Legend:

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

    r1049 r1136  
    44#ifndef FITSNTuple_SEEN
    55#define FITSNTuple_SEEN
     6#include "machdefs.h"
    67#include "ntuple.h"
    78#include "anydataobj.h"
     
    1415// pout NTuple
    1516////////////////////////////////////////////////////////////////
    16 class  FITS_NTuple : public FitsFile 
     17class  FITS_NTuple : public FitsIOHandler 
    1718{
    1819
     
    2425 FITS_NTuple(NTuple* obj);
    2526virtual ~FITS_NTuple();
    26  void Read(char inputfile[],int hdunum=2);
     27
     28virtual   AnyDataObj* DataObj() { return(dobj_); }
     29virtual   void        SetDataObj(AnyDataObj & o)
     30  {   
     31    NTuple* po = dynamic_cast<  NTuple* >(& o);
     32    if (po == NULL) return;
     33    if (ownobj_ && dobj_) delete dobj_; 
     34    dobj_ = po;
     35    ownobj_ = false;
     36  }   
     37
     38
    2739/*!
    2840fill the XNTuple only with lines from firstLine-th to (firstLine+numberOfLines-1)-th of the FITS-file inputfile.
     
    3143*/
    3244 void ReadLines(char inputfile[],int firstLine, int numberOfLines,int hdunum=2);
    33 void Write(char outputfile[], bool OldFile=false);
     45
    3446inline operator NTuple() { return(*dobj_); }
    3547inline NTuple * getObj() { return(dobj_); }
     
    3850
    3951  // implementation de FitsFile
    40 //virtual void ReadFromFits(FitsFile& fn);
    41 virtual void ReadFromFits();
    42 virtual void WriteToFits();
    43 
    44 float*  getColFromObj(int colNr);
     52virtual void ReadFromFits(FitsInFile& is);
     53virtual void WriteToFits(FitsOutFile& os) ;
    4554
    4655 private :
    4756
    48 inline void InitNull()
    49    {
    50      fistLineToBeRead_= -1;
    51      numberOfLinesToBeRead_= -1;
    52      column_ = NULL;
    53    }
     57inline void InitNull() { fistLineToBeRead_= -1; numberOfLinesToBeRead_= -1;}
    5458
    5559
     
    5963  int fistLineToBeRead_;
    6064  int numberOfLinesToBeRead_;
    61   float* column_;
    6265};
    6366//////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.