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

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: 791 bytes
Line 
1/*
2 --- SOPHYA software - FitsIOServer module ---
3 C. Magneville, 2006
4 (C) UPS+LAL IN2P3/CNRS (C) DAPNIA-SPP/CEA
5*/
6#ifndef FITSGENDATAHAND_H
7#define FITSGENDATAHAND_H
8
9#include "machdefs.h"
10#include <string>
11
12#include "generaldata.h"
13#include "fitshandler.h"
14
15namespace SOPHYA {
16
17/*!
18 \ingroup FitsIOServer
19 \brief FITS I/O handler for GeneralFitData objects
20*/
21
22inline FitsInOutFile& operator << (FitsInOutFile& os, GeneralFitData const & obj)
23{ FitsHandler<GeneralFitData> fio(const_cast<GeneralFitData &>(obj)); fio.Write(os); return os; }
24
25inline FitsInOutFile& operator >> (FitsInOutFile& is, GeneralFitData & obj)
26 { FitsHandler<GeneralFitData> fio(obj); is.SkipEmptyFirstHDU();
27 fio.Read(is); is.MoveToNextHDU(); return(is); }
28
29
30} // Fin du namespace
31
32#endif
Note: See TracBrowser for help on using the repository browser.