| Rev | Line |   | 
|---|
| [3049] | 1 | #ifndef FITSHISTOHAND_H
 | 
|---|
 | 2 | #define FITSHISTOHAND_H
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 | #include "machdefs.h"
 | 
|---|
 | 5 | #include <string>
 | 
|---|
| [3054] | 6 | 
 | 
|---|
| [3049] | 7 | #include "histos.h"
 | 
|---|
 | 8 | #include "histos2.h"
 | 
|---|
 | 9 | #include "fitshandler.h"
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | namespace SOPHYA {
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 | /*! 
 | 
|---|
 | 14 |   \ingroup FitsIOServer
 | 
|---|
| [3123] | 15 |   \brief FITS I/O handler for Histo/HProf objects
 | 
|---|
| [3049] | 16 | */
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 | inline FitsInOutFile& operator << (FitsInOutFile& os, Histo const & obj)
 | 
|---|
 | 19 | { FitsHandler<Histo> fio(const_cast<Histo &>(obj));  fio.Write(os);  return os; }
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | inline FitsInOutFile& operator >> (FitsInOutFile& is, Histo & obj)
 | 
|---|
 | 22 |   { FitsHandler<Histo> fio(obj); is.SkipEmptyFirstHDU();
 | 
|---|
 | 23 |   fio.Read(is); is.MoveToNextHDU(); return(is); }
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | /*! 
 | 
|---|
 | 26 |   \ingroup FitsIOServer
 | 
|---|
 | 27 |   \brief FITS I/O handler for Histo2D objects
 | 
|---|
 | 28 | */
 | 
|---|
 | 29 | 
 | 
|---|
 | 30 | inline FitsInOutFile& operator << (FitsInOutFile& os, Histo2D const & obj)
 | 
|---|
 | 31 | { FitsHandler<Histo2D> fio(const_cast<Histo2D &>(obj));  fio.Write(os);  return os; }
 | 
|---|
 | 32 | 
 | 
|---|
 | 33 | inline FitsInOutFile& operator >> (FitsInOutFile& is, Histo2D & obj)
 | 
|---|
 | 34 |   { FitsHandler<Histo2D> fio(obj); is.SkipEmptyFirstHDU();
 | 
|---|
 | 35 |   fio.Read(is); is.MoveToNextHDU(); return(is); }
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | 
 | 
|---|
 | 38 | } // Fin du namespace
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.