source: Sophya/trunk/SophyaExt/FitsIOServer/fitsgenedata.h@ 3391

Last change on this file since 3391 was 3063, checked in by cmv, 19 years ago

Makefile

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