Last change
on this file since 4017 was 3493, checked in by ansari, 17 years ago |
1/ Ajout methodes FitsArrayHandler<T>::ReadAtOffset() WriteAtOffset() pour lecture/ecriture de tableaux <> HDU IMAGE par morceaux
2/ Ajout entete commentaire avec copyright LAL+DAPNIA dans les fichiers .h
Reza 30/04/2008
|
File size:
1.2 KB
|
Rev | Line | |
---|
[3493] | 1 | /*
|
---|
| 2 | --- SOPHYA software - FitsIOServer module ---
|
---|
| 3 | C. Magneville, 2007
|
---|
| 4 | (C) UPS+LAL IN2P3/CNRS (C) DAPNIA-SPP/CEA
|
---|
| 5 | */
|
---|
[3123] | 6 | #ifndef FITSHISTERRHAND_H
|
---|
| 7 | #define FITSHISTERRHAND_H
|
---|
| 8 |
|
---|
| 9 | #include "machdefs.h"
|
---|
| 10 | #include <string>
|
---|
| 11 |
|
---|
| 12 | #include "histerr.h"
|
---|
| 13 | #include "hist2err.h"
|
---|
| 14 | #include "fitshandler.h"
|
---|
| 15 |
|
---|
| 16 | namespace SOPHYA {
|
---|
| 17 |
|
---|
| 18 | /*!
|
---|
| 19 | \ingroup FitsIOServer
|
---|
| 20 | \brief FITS I/O handler for HistErr objects
|
---|
| 21 | */
|
---|
| 22 |
|
---|
| 23 | inline FitsInOutFile& operator << (FitsInOutFile& os, HistoErr const & obj)
|
---|
| 24 | { FitsHandler<HistoErr> fio(const_cast<HistoErr &>(obj)); fio.Write(os); return os; }
|
---|
| 25 |
|
---|
| 26 | inline FitsInOutFile& operator >> (FitsInOutFile& is, HistoErr & obj)
|
---|
| 27 | { FitsHandler<HistoErr> fio(obj); is.SkipEmptyFirstHDU();
|
---|
| 28 | fio.Read(is); is.MoveToNextHDU(); return(is); }
|
---|
| 29 |
|
---|
| 30 | /*!
|
---|
| 31 | \ingroup FitsIOServer
|
---|
| 32 | \brief FITS I/O handler for Histo2DErr objects
|
---|
| 33 | */
|
---|
| 34 |
|
---|
| 35 | inline FitsInOutFile& operator << (FitsInOutFile& os, Histo2DErr const & obj)
|
---|
| 36 | { FitsHandler<Histo2DErr> fio(const_cast<Histo2DErr &>(obj)); fio.Write(os); return os; }
|
---|
| 37 |
|
---|
| 38 | inline FitsInOutFile& operator >> (FitsInOutFile& is, Histo2DErr & obj)
|
---|
| 39 | { FitsHandler<Histo2DErr> 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.