source: Sophya/trunk/SophyaExt/FitsIOServer/fitsspherethetaphi.h@ 4023

Last change on this file since 4023 was 3572, checked in by cmv, 17 years ago

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1/*
2 --- SOPHYA software - FitsIOServer module ---
3 Guy Le Meur 10/2001 R. Ansari , 2006
4 (C) UPS+LAL IN2P3/CNRS (C) DAPNIA-SPP/CEA
5*/
6#ifndef FITSSPHERETHETAPHI_SEEN
7#define FITSSPHERETHETAPHI_SEEN
8
9
10#include "spherethetaphi.h"
11#include "anydataobj.h"
12#include "fitsfile.h"
13namespace SOPHYA {
14///////////////////////////////////////////////////////////////////////
15// ------------- Classe pour la gestion de persistance I/O format fits--
16// spherethetaphi
17//////////////////////////////////////////////////////////////////////
18template <class T>
19class FITS_SphereThetaPhi : public FitsIOHandler
20{
21public:
22
23FITS_SphereThetaPhi();
24FITS_SphereThetaPhi(const char inputfile[],int hdunum=0);
25FITS_SphereThetaPhi(const SphereThetaPhi<T>& obj);
26FITS_SphereThetaPhi(SphereThetaPhi<T>* obj);
27virtual ~FITS_SphereThetaPhi();
28virtual AnyDataObj* DataObj();
29virtual void SetDataObj(AnyDataObj & o);
30
31virtual int CheckHandling(AnyDataObj & o) ;
32virtual int CheckReadability(FitsInOutFile& is);
33virtual FitsHandlerInterface* Clone();
34
35void Mollweide_picture_projection(const char flnm[]);
36void sinus_picture_projection(const char flnm[]);
37
38
39inline operator SphereThetaPhi<T>() { return(*dobj_); }
40
41
42protected:
43
44virtual void ReadFromFits(FitsInFile& is);
45virtual void WriteToFits(FitsOutFile& os) ;
46SphereThetaPhi<T>* dobj_;
47bool ownobj_;
48
49
50
51};
52
53
54//////////////////////////////////////////////////////////////////
55
56template <class T>
57inline FitsInOutFile& operator << (FitsInOutFile& fios, SphereThetaPhi<T> & sph)
58 { FITS_SphereThetaPhi<T> fih(&sph); fih.Write(fios); return (fios); }
59
60template <class T>
61inline FitsInOutFile& operator >> (FitsInOutFile& fiis, SphereThetaPhi<T> & sph)
62 { FITS_SphereThetaPhi<T> fih(&sph); fiis.SkipEmptyFirstHDU();
63 fih.Read(fiis); fiis.MoveToNextHDU(); return (fiis); }
64
65
66
67} // Fin du namespace
68
69
70#endif
Note: See TracBrowser for help on using the repository browser.