source: Sophya/trunk/SophyaExt/FitsIOServer/fitshdtable.h@ 3359

Last change on this file since 3359 was 3047, checked in by ansari, 19 years ago

Ajout FitsInOutFile::SkipEmptyFirstHDU() , positionnement sur HDU 2 si HDU 1 vide ds operateur >> lisant des tables + autres petites corrections , Reza 11/08/2006

File size: 647 bytes
Line 
1#ifndef FITSDTABLEHAND_H
2#define FITSDTABLEHAND_H
3
4#include "machdefs.h"
5#include <string>
6#include "datatable.h"
7
8#include "fitshandler.h"
9
10namespace SOPHYA {
11
12/*!
13 \ingroup FitsIOServer
14 \brief FITS I/O handler for DataTable objects
15*/
16
17
18
19inline FitsInOutFile& operator << (FitsInOutFile& os, BaseDataTable const & obj)
20{ FitsHandler<BaseDataTable> fio(const_cast<BaseDataTable &>(obj)); fio.Write(os); return os; }
21
22inline FitsInOutFile& operator >> (FitsInOutFile& is, BaseDataTable & obj)
23 { FitsHandler<BaseDataTable> fio(obj); is.SkipEmptyFirstHDU();
24 fio.Read(is); is.MoveToNextHDU(); return(is); }
25
26
27} // Fin du namespace
28
29#endif
30
Note: See TracBrowser for help on using the repository browser.