Changeset 853 in Sophya for trunk/SophyaLib/SkyMap/fiospherehealpix.cc
- Timestamp:
- Apr 10, 2000, 3:01:22 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/fiospherehealpix.cc
r842 r853 6 6 7 7 //******************************************************************* 8 // Class FIO_SphereH ealpix<T>8 // Class FIO_SphereHEALPix<T> 9 9 // Les objets delegues pour la gestion de persistance 10 10 //******************************************************************* 11 11 12 12 template <class T> 13 FIO_SphereH ealpix<T>::FIO_SphereHealpix()13 FIO_SphereHEALPix<T>::FIO_SphereHEALPix() 14 14 { 15 dobj_= new SphereH ealpix<T>;15 dobj_= new SphereHEALPix<T>; 16 16 ownobj= true; 17 17 } 18 18 19 19 template <class T> 20 FIO_SphereH ealpix<T>::FIO_SphereHealpix(string const& filename)20 FIO_SphereHEALPix<T>::FIO_SphereHEALPix(string const& filename) 21 21 { 22 dobj_= new SphereH ealpix<T>;22 dobj_= new SphereHEALPix<T>; 23 23 dobj_->SetTemp(true); 24 24 ownobj= true; … … 27 27 28 28 template <class T> 29 FIO_SphereH ealpix<T>::FIO_SphereHealpix(const SphereHealpix<T>& obj)29 FIO_SphereHEALPix<T>::FIO_SphereHEALPix(const SphereHEALPix<T>& obj) 30 30 { 31 dobj_= new SphereH ealpix<T>(obj, true);31 dobj_= new SphereHEALPix<T>(obj, true); 32 32 dobj_->SetTemp(true); 33 33 ownobj= true; … … 35 35 36 36 template <class T> 37 FIO_SphereH ealpix<T>::FIO_SphereHealpix(SphereHealpix<T>* obj)37 FIO_SphereHEALPix<T>::FIO_SphereHEALPix(SphereHEALPix<T>* obj) 38 38 { 39 39 dobj_= obj; … … 42 42 43 43 template <class T> 44 FIO_SphereH ealpix<T>::~FIO_SphereHealpix()44 FIO_SphereHEALPix<T>::~FIO_SphereHEALPix() 45 45 { 46 46 if (ownobj && dobj_) delete dobj_; … … 48 48 49 49 template <class T> 50 AnyDataObj* FIO_SphereH ealpix<T>::DataObj()50 AnyDataObj* FIO_SphereHEALPix<T>::DataObj() 51 51 { 52 52 return(dobj_); … … 54 54 55 55 template <class T> 56 void FIO_SphereH ealpix<T>::SetDataObj(AnyDataObj & o)56 void FIO_SphereHEALPix<T>::SetDataObj(AnyDataObj & o) 57 57 { 58 SphereH ealpix<T> * po = dynamic_cast< SphereHealpix<T> * >(&o);58 SphereHEALPix<T> * po = dynamic_cast< SphereHEALPix<T> * >(&o); 59 59 if (po == NULL) return; 60 60 if (ownobj && dobj_) delete dobj_; … … 63 63 64 64 template <class T> 65 void FIO_SphereH ealpix<T>::ReadSelf(PInPersist& is)65 void FIO_SphereHEALPix<T>::ReadSelf(PInPersist& is) 66 66 { 67 67 68 68 if(dobj_ == NULL) 69 69 { 70 dobj_= new SphereH ealpix<T>;70 dobj_= new SphereHEALPix<T>; 71 71 dobj_->SetTemp(true); 72 72 ownobj= true; … … 107 107 108 108 template <class T> 109 void FIO_SphereH ealpix<T>::WriteSelf(POutPersist& os) const109 void FIO_SphereHEALPix<T>::WriteSelf(POutPersist& os) const 110 110 { 111 111 if(dobj_ == NULL) … … 132 132 if(dobj_->ptrInfo()) 133 133 { 134 sprintf(strg,"SphereH ealpix: NSide=%6d NPix=%9d HasInfo",nSide,nPix);134 sprintf(strg,"SphereHEALPix: NSide=%6d NPix=%9d HasInfo",nSide,nPix); 135 135 os.PutLine(strg); 136 136 os << dobj_->Info(); … … 138 138 else 139 139 { 140 sprintf(strg,"SphereH ealpix: NSide=%6d NPix=%9d ",nSide,nPix);140 sprintf(strg,"SphereHEALPix: NSide=%6d NPix=%9d ",nSide,nPix); 141 141 os.PutLine(strg); 142 142 } … … 157 157 158 158 #ifdef __CXX_PRAGMA_TEMPLATES__ 159 #pragma define_template FIO_SphereH ealpix<r_8>160 #pragma define_template FIO_SphereH ealpix<r_4>161 #pragma define_template FIO_SphereH ealpix< complex<r_4> >162 #pragma define_template FIO_SphereH ealpix< complex<r_8> >159 #pragma define_template FIO_SphereHEALPix<r_8> 160 #pragma define_template FIO_SphereHEALPix<r_4> 161 #pragma define_template FIO_SphereHEALPix< complex<r_4> > 162 #pragma define_template FIO_SphereHEALPix< complex<r_8> > 163 163 #endif 164 164 #if defined(ANSI_TEMPLATES) || defined(GNU_TEMPLATES) 165 template class FIO_SphereH ealpix<r_8>;166 template class FIO_SphereH ealpix<r_4>;167 template class FIO_SphereH ealpix< complex<r_4> >;168 template class FIO_SphereH ealpix< complex<r_8> >;165 template class FIO_SphereHEALPix<r_8>; 166 template class FIO_SphereHEALPix<r_4>; 167 template class FIO_SphereHEALPix< complex<r_4> >; 168 template class FIO_SphereHEALPix< complex<r_8> >; 169 169 #endif
Note:
See TracChangeset
for help on using the changeset viewer.