Ignore:
Timestamp:
Jan 13, 2006, 11:05:52 AM (20 years ago)
Author:
ansari
Message:

Mise en place de l heritage FitsIOHandler (ancien) de FitsHandlerInterface pour une gestion commune - a partir de FitsManager - Reza 13/01/2006

File:
1 edited

Legend:

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

    r2860 r2897  
    244244}
    245245
     246void FitsIOHandler::Read(FitsInOutFile& is)
     247{
     248  FitsInFile fis(is);
     249  fis.ReadHeader(0);
     250  ReadFromFits(fis);
     251}
     252
    246253  /*! \fn void SOPHYA::FitsIOHandler::Read(FitsInFile& is, int hdunum)
    247254Read the data on extension hdunum (or primary header, if hdunum=1) from FitsInFIle. If hdunum is not addressed, , one reads the next extension, with respect to the current position.
     
    271278{
    272279  FitsOutFile of(flnm, FitsFile::unknown);
    273   Write(of);
    274 }
    275 
    276 void FitsIOHandler::Write(FitsOutFile& os)
    277 {
    278   WriteToFits(os);
     280  WriteToFits(of);
     281}
     282
     283void FitsIOHandler::Write(FitsInOutFile& os)
     284{
     285  FitsOutFile fos(os);
     286  WriteToFits(fos);
    279287}
    280288
Note: See TracChangeset for help on using the changeset viewer.