|
Last change
on this file since 1099 was 1047, checked in by ansari, 25 years ago |
|
modifs pour introduction lecteur de fits par lignes
|
|
File size:
951 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 |
|
|---|
| 12 | namespace SOPHYA {
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | /////////////////////////////////////////////////////////////////////////
|
|---|
| 16 | // Classe pour la gestion de persistance sur fichiers fits
|
|---|
| 17 | /////////////////////////////////////////////////////////////////////////
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | template <class T>
|
|---|
| 22 | class FITS_TArray : public FitsFile {
|
|---|
| 23 |
|
|---|
| 24 | public:
|
|---|
| 25 |
|
|---|
| 26 | FITS_TArray();
|
|---|
| 27 | FITS_TArray(char inputfile[],int hdunum=2);
|
|---|
| 28 | FITS_TArray(const TArray<T> & obj);
|
|---|
| 29 | FITS_TArray(TArray<T> *obj);
|
|---|
| 30 | virtual ~FITS_TArray();
|
|---|
| 31 | virtual AnyDataObj* DataObj();
|
|---|
| 32 | inline operator TArray<T>() { return(*dobj_); }
|
|---|
| 33 | void Write(char outputfile[], bool OldFile=false);
|
|---|
| 34 |
|
|---|
| 35 | protected :
|
|---|
| 36 |
|
|---|
| 37 | //void ReadFromFits(FitsFile& fn);
|
|---|
| 38 | void ReadFromFits();
|
|---|
| 39 | void WriteToFits();
|
|---|
| 40 |
|
|---|
| 41 | TArray<T> * dobj_;
|
|---|
| 42 | bool ownobj;
|
|---|
| 43 | };
|
|---|
| 44 | //////////////////////////////////////////////////////////////////
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | } // Fin du namespace
|
|---|
| 48 |
|
|---|
| 49 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.