Changeset 921 in Sophya for trunk/SophyaExt
- Timestamp:
- Apr 13, 2000, 6:56:53 PM (25 years ago)
- Location:
- trunk/SophyaExt/FitsIOServer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsspherehealpix.cc
r910 r921 28 28 } 29 29 30 template <class T>31 void FITS_SphereHEALPix<T>::Write(char outputfile[],int hdunum)32 {33 WriteF(outputfile, hdunum);34 }35 30 36 31 template <class T> … … 62 57 63 58 template <class T> 59 void FITS_SphereHEALPix<T>::SetDataObj(AnyDataObj & o) 60 { 61 SphereHEALPix<T> * po = dynamic_cast< SphereHEALPix<T> * >(&o); 62 if (po == NULL) return; 63 if (ownobj && dobj_) delete dobj_; 64 dobj_ = po; 65 ownobj = false; 66 } 67 68 69 70 template <class T> 71 void FITS_SphereHEALPix<T>::Write(char outputfile[],int hdunum) 72 { 73 WriteF(outputfile, hdunum); 74 } 75 template <class T> 76 void FITS_SphereHEALPix<T>::Read(char inputfile[],int hdunum) 77 { 78 ReadF(inputfile,hdunum); 79 } 80 81 template <class T> 64 82 void FITS_SphereHEALPix<T>::WriteToFits(const FitsFile& fn) 65 83 { 66 84 if(dobj_ == NULL) 67 85 { 68 cout << " WriteTo :: dobj_= null " << endl;86 cout << " WriteToFits:: dobj_= null " << endl; 69 87 return; 70 88 } … … 89 107 90 108 // On ecrit les dataBlocks 91 // fn.put_fits_bintab(dobj_->pixels_,dvl);92 109 char** Noms = new char*[1]; 93 110 Noms[0]= new char[15]; -
trunk/SophyaExt/FitsIOServer/fitsspherehealpix.h
r854 r921 27 27 virtual ~FITS_SphereHEALPix(); 28 28 virtual AnyDataObj* DataObj(); 29 virtual void SetDataObj(AnyDataObj & o); 29 30 30 inline operator SphereHEALPix<T>() { return(*dobj_); } 31 inline operator SphereHEALPix<T>() {return(*dobj_); } 32 void Read(char inputfile[],int hdunum=2); 31 33 void Write(char outputfile[], int hdunum=2); 32 34 … … 35 37 virtual void ReadFromFits(const FitsFile& fn); 36 38 virtual void WriteToFits(const FitsFile& fn); 37 void WriteTo (FitsFile& fn);38 39 SphereHEALPix<T>* dobj_; 39 40 bool ownobj;
Note:
See TracChangeset
for help on using the changeset viewer.