source: Sophya/trunk/SophyaExt/FitsIOServer/fitstarray.h@ 985

Last change on this file since 985 was 972, checked in by ansari, 25 years ago

mise a jour 27/04/00 GLM

File size: 938 bytes
Line 
1// Guy Le Meur 04/2000
2
3
4#ifndef FITSTARRAY_SEEN
5#define FITSTARRAY_SEEN
6
7
8#include "pexceptions.h"
9#include "tarray.h"
10#include "fitsfile.h"
11
12namespace SOPHYA {
13
14
15/////////////////////////////////////////////////////////////////////////
16// Classe pour la gestion de persistance sur fichiers fits
17/////////////////////////////////////////////////////////////////////////
18
19
20
21template <class T>
22class FITS_TArray : public FitsFile {
23
24public:
25
26FITS_TArray();
27FITS_TArray(char inputfile[],int hdunum=1);
28FITS_TArray(const TArray<T> & obj);
29FITS_TArray(TArray<T> *obj);
30virtual ~FITS_TArray();
31virtual AnyDataObj* DataObj();
32inline operator TArray<T>() { return(*dobj_); }
33void Write(char outputfile[], bool OldFile=false);
34
35protected :
36
37void ReadFromFits(FitsFile& fn);
38void WriteToFits(FitsFile& fn);
39
40 TArray<T> * dobj_;
41 bool ownobj;
42};
43//////////////////////////////////////////////////////////////////
44
45
46} // Fin du namespace
47
48#endif
Note: See TracBrowser for help on using the repository browser.