source: Sophya/trunk/SophyaExt/FitsIOServer/fitshisterr.h@ 3477

Last change on this file since 3477 was 3123, checked in by cmv, 19 years ago

modif HistoErr Histo2DErr cmv 10/01/07

File size: 1.1 KB
Line 
1#ifndef FITSHISTERRHAND_H
2#define FITSHISTERRHAND_H
3
4#include "machdefs.h"
5#include <string>
6
7#include "histerr.h"
8#include "hist2err.h"
9#include "fitshandler.h"
10
11namespace SOPHYA {
12
13/*!
14 \ingroup FitsIOServer
15 \brief FITS I/O handler for HistErr objects
16*/
17
18inline FitsInOutFile& operator << (FitsInOutFile& os, HistoErr const & obj)
19{ FitsHandler<HistoErr> fio(const_cast<HistoErr &>(obj)); fio.Write(os); return os; }
20
21inline FitsInOutFile& operator >> (FitsInOutFile& is, HistoErr & obj)
22 { FitsHandler<HistoErr> fio(obj); is.SkipEmptyFirstHDU();
23 fio.Read(is); is.MoveToNextHDU(); return(is); }
24
25/*!
26 \ingroup FitsIOServer
27 \brief FITS I/O handler for Histo2DErr objects
28*/
29
30inline FitsInOutFile& operator << (FitsInOutFile& os, Histo2DErr const & obj)
31{ FitsHandler<Histo2DErr> fio(const_cast<Histo2DErr &>(obj)); fio.Write(os); return os; }
32
33inline FitsInOutFile& operator >> (FitsInOutFile& is, Histo2DErr & obj)
34 { FitsHandler<Histo2DErr> 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.