| Last change
 on this file since 3891 was             3493, checked in by ansari, 18 years ago | 
        
          | 
1/ Ajout methodes FitsArrayHandler<T>::ReadAtOffset() WriteAtOffset() pour lecture/ecriture de tableaux <> HDU IMAGE par morceaux2/ Ajout entete commentaire avec copyright LAL+DAPNIA dans les fichiers .h
 
 
Reza 30/04/2008
 | 
        
          | File size:
            1.1 KB | 
      
      
| Rev | Line |  | 
|---|
| [3493] | 1 | /* | 
|---|
|  | 2 | --- SOPHYA software - FitsIOServer module --- | 
|---|
|  | 3 | C. Magneville, 2006 | 
|---|
|  | 4 | (C) UPS+LAL IN2P3/CNRS     (C) DAPNIA-SPP/CEA | 
|---|
|  | 5 | */ | 
|---|
| [3049] | 6 | #ifndef FITSHISTOHAND_H | 
|---|
|  | 7 | #define FITSHISTOHAND_H | 
|---|
|  | 8 |  | 
|---|
|  | 9 | #include "machdefs.h" | 
|---|
|  | 10 | #include <string> | 
|---|
| [3054] | 11 |  | 
|---|
| [3049] | 12 | #include "histos.h" | 
|---|
|  | 13 | #include "histos2.h" | 
|---|
|  | 14 | #include "fitshandler.h" | 
|---|
|  | 15 |  | 
|---|
|  | 16 | namespace SOPHYA { | 
|---|
|  | 17 |  | 
|---|
|  | 18 | /*! | 
|---|
|  | 19 | \ingroup FitsIOServer | 
|---|
| [3123] | 20 | \brief FITS I/O handler for Histo/HProf objects | 
|---|
| [3049] | 21 | */ | 
|---|
|  | 22 |  | 
|---|
|  | 23 | inline FitsInOutFile& operator << (FitsInOutFile& os, Histo const & obj) | 
|---|
|  | 24 | { FitsHandler<Histo> fio(const_cast<Histo &>(obj));  fio.Write(os);  return os; } | 
|---|
|  | 25 |  | 
|---|
|  | 26 | inline FitsInOutFile& operator >> (FitsInOutFile& is, Histo & obj) | 
|---|
|  | 27 | { FitsHandler<Histo> fio(obj); is.SkipEmptyFirstHDU(); | 
|---|
|  | 28 | fio.Read(is); is.MoveToNextHDU(); return(is); } | 
|---|
|  | 29 |  | 
|---|
|  | 30 | /*! | 
|---|
|  | 31 | \ingroup FitsIOServer | 
|---|
|  | 32 | \brief FITS I/O handler for Histo2D objects | 
|---|
|  | 33 | */ | 
|---|
|  | 34 |  | 
|---|
|  | 35 | inline FitsInOutFile& operator << (FitsInOutFile& os, Histo2D const & obj) | 
|---|
|  | 36 | { FitsHandler<Histo2D> fio(const_cast<Histo2D &>(obj));  fio.Write(os);  return os; } | 
|---|
|  | 37 |  | 
|---|
|  | 38 | inline FitsInOutFile& operator >> (FitsInOutFile& is, Histo2D & obj) | 
|---|
|  | 39 | { FitsHandler<Histo2D> fio(obj); is.SkipEmptyFirstHDU(); | 
|---|
|  | 40 | fio.Read(is); is.MoveToNextHDU(); return(is); } | 
|---|
|  | 41 |  | 
|---|
|  | 42 |  | 
|---|
|  | 43 | } // Fin du namespace | 
|---|
|  | 44 |  | 
|---|
|  | 45 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.