From cb1b53a6a4a0a57367d898471a45f7cc71d274d0 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Thu, 29 Apr 2010 12:42:02 +0000 Subject: [PATCH] read() and write() now pure virtual in base class --- include/GWcsHPX.hpp | 4 ++-- src/sky/GWcsHPX.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/GWcsHPX.hpp b/include/GWcsHPX.hpp index ea0c834..6f59646 100644 --- a/include/GWcsHPX.hpp +++ b/include/GWcsHPX.hpp @@ -52,10 +52,10 @@ public: // Implemented pure virtual methods std::string type(void) const; + void read(const GFitsHDU* hdu); + void write(GFitsHDU* hdu) const; // Overloaded base class methods - void read(const GFitsHDU* hdu); - void write(GFitsHDU* hdu); double omega(const int& pix) const; GSkyDir pix2dir(const int& pix); int dir2pix(GSkyDir dir) const; diff --git a/src/sky/GWcsHPX.cpp b/src/sky/GWcsHPX.cpp index acf027e..25f698f 100644 --- a/src/sky/GWcsHPX.cpp +++ b/src/sky/GWcsHPX.cpp @@ -221,15 +221,15 @@ std::string GWcsHPX::type(void) const /***********************************************************************//** - * @brief Read Healpix definiton from FITS header. + * @brief Read Healpix definiton from FITS header * * @param[in] hdu FITS HDU containing the Healpix definition. * - * @exception GException::wcs + * @exception GException::wcs * Unable to load Healpix definition from HDU. - * @exception GException::wcs_bad_coords + * @exception GException::wcs_bad_coords * Invalid coordsys parameter. - * @exception GException::wcs_hpx_bad_ordering + * @exception GException::wcs_hpx_bad_ordering * Invalid ordering parameter. ***************************************************************************/ void GWcsHPX::read(const GFitsHDU* hdu) @@ -279,7 +279,7 @@ void GWcsHPX::read(const GFitsHDU* hdu) /***********************************************************************//** - * @brief Write Healpix definiton into FITS HDU. + * @brief Write Healpix definiton into FITS HDU * * @param[in] hdu FITS HDU to which the Healpix definition will be written. * @@ -292,7 +292,7 @@ void GWcsHPX::read(const GFitsHDU* hdu) * ORDERING = ordering() * COORDSYS = coordsys() ***************************************************************************/ -void GWcsHPX::write(GFitsHDU* hdu) +void GWcsHPX::write(GFitsHDU* hdu) const { // Continue only if HDU is valid if (hdu != NULL) { -- libgit2 0.21.4