Changeset 1397 in Sophya


Ignore:
Timestamp:
Feb 12, 2001, 6:11:37 PM (25 years ago)
Author:
ansari
Message:

Ajout operateur >> et << pour PPersist des LocalMap et SphericalMap - Reza 12/2/2001

Location:
trunk/SophyaLib/SkyMap
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/fiolocalmap.h

    r842 r1397  
    4242};
    4343
     44/*! \ingroup SkyMap \fn operator<<(POutPersist&,LocalMap<T>&)
     45  \brief Write LocalMap \b obj into POutPersist stream \b os */
     46template <class T>
     47inline POutPersist& operator << (POutPersist& os, LocalMap<T> & obj)
     48{ FIO_LocalMap<T> fio(&obj);  fio.Write(os);  return(os); }
     49
     50/*! \ingroup SkyMap \fn operator>>(PInPersist&,LocalMap<T>&)
     51  \brief Read LocalMap \b obj from PInPersist stream \b os */
     52template <class T>
     53inline PInPersist& operator >> (PInPersist& is, LocalMap<T> & obj)
     54{ FIO_LocalMap<T> fio(&obj);  fio.Read(is);  return(is); }
     55
     56
    4457} // Fin du namespace
    4558
  • trunk/SophyaLib/SkyMap/fiospherehealpix.h

    r853 r1397  
    4141};
    4242
     43/*! \ingroup SkyMap \fn operator<<(POutPersist&,SphereHEALPix<T>&)
     44  \brief Write SphereHEALPix \b obj into POutPersist stream \b os */
     45template <class T>
     46inline POutPersist& operator << (POutPersist& os, SphereHEALPix<T> & obj)
     47{ FIO_SphereHEALPix<T> fio(&obj);  fio.Write(os);  return(os); }
     48
     49/*! \ingroup SkyMap \fn operator>>(PInPersist&,SphereHEALPix<T>&)
     50  \brief Read SphereHEALPix \b obj from PInPersist stream \b os */
     51template <class T>
     52inline PInPersist& operator >> (PInPersist& is, SphereHEALPix<T> & obj)
     53{ FIO_SphereHEALPix<T> fio(&obj);  fio.Read(is);  return(is); }
     54
    4355} // Fin du namespace
    4456
  • trunk/SophyaLib/SkyMap/fiospherethetaphi.h

    r842 r1397  
    4242};
    4343
     44/*! \ingroup SkyMap \fn operator<<(POutPersist&,SphereThetaPhi<T>&)
     45  \brief Write SphereThetaPhi \b obj into POutPersist stream \b os */
     46template <class T>
     47inline POutPersist& operator << (POutPersist& os, SphereThetaPhi<T> & obj)
     48{ FIO_SphereThetaPhi<T> fio(&obj);  fio.Write(os);  return(os); }
     49
     50/*! \ingroup SkyMap \fn operator>>(PInPersist&,SphereThetaPhi<T>&)
     51  \brief Read SphereThetaPhi \b obj from PInPersist stream \b os */
     52template <class T>
     53inline PInPersist& operator >> (PInPersist& is, SphereThetaPhi<T> & obj)
     54{ FIO_SphereThetaPhi<T> fio(&obj);  fio.Read(is);  return(is); }
     55
     56
    4457} // Fin du namespace
    4558
Note: See TracChangeset for help on using the changeset viewer.