Commit cb1b53a6a4a0a57367d898471a45f7cc71d274d0
1 parent
1ccf999b
read() and write() now pure virtual in base class
Showing
2 changed files
with
8 additions
and
8 deletions
include/GWcsHPX.hpp
| @@ -52,10 +52,10 @@ public: | @@ -52,10 +52,10 @@ public: | ||
| 52 | 52 | ||
| 53 | // Implemented pure virtual methods | 53 | // Implemented pure virtual methods |
| 54 | std::string type(void) const; | 54 | std::string type(void) const; |
| 55 | + void read(const GFitsHDU* hdu); | ||
| 56 | + void write(GFitsHDU* hdu) const; | ||
| 55 | 57 | ||
| 56 | // Overloaded base class methods | 58 | // Overloaded base class methods |
| 57 | - void read(const GFitsHDU* hdu); | ||
| 58 | - void write(GFitsHDU* hdu); | ||
| 59 | double omega(const int& pix) const; | 59 | double omega(const int& pix) const; |
| 60 | GSkyDir pix2dir(const int& pix); | 60 | GSkyDir pix2dir(const int& pix); |
| 61 | int dir2pix(GSkyDir dir) const; | 61 | int dir2pix(GSkyDir dir) const; |
src/sky/GWcsHPX.cpp
| @@ -221,15 +221,15 @@ std::string GWcsHPX::type(void) const | @@ -221,15 +221,15 @@ std::string GWcsHPX::type(void) const | ||
| 221 | 221 | ||
| 222 | 222 | ||
| 223 | /***********************************************************************//** | 223 | /***********************************************************************//** |
| 224 | - * @brief Read Healpix definiton from FITS header. | 224 | + * @brief Read Healpix definiton from FITS header |
| 225 | * | 225 | * |
| 226 | * @param[in] hdu FITS HDU containing the Healpix definition. | 226 | * @param[in] hdu FITS HDU containing the Healpix definition. |
| 227 | * | 227 | * |
| 228 | - * @exception GException::wcs | 228 | + * @exception GException::wcs |
| 229 | * Unable to load Healpix definition from HDU. | 229 | * Unable to load Healpix definition from HDU. |
| 230 | - * @exception GException::wcs_bad_coords | 230 | + * @exception GException::wcs_bad_coords |
| 231 | * Invalid coordsys parameter. | 231 | * Invalid coordsys parameter. |
| 232 | - * @exception GException::wcs_hpx_bad_ordering | 232 | + * @exception GException::wcs_hpx_bad_ordering |
| 233 | * Invalid ordering parameter. | 233 | * Invalid ordering parameter. |
| 234 | ***************************************************************************/ | 234 | ***************************************************************************/ |
| 235 | void GWcsHPX::read(const GFitsHDU* hdu) | 235 | void GWcsHPX::read(const GFitsHDU* hdu) |
| @@ -279,7 +279,7 @@ void GWcsHPX::read(const GFitsHDU* hdu) | @@ -279,7 +279,7 @@ void GWcsHPX::read(const GFitsHDU* hdu) | ||
| 279 | 279 | ||
| 280 | 280 | ||
| 281 | /***********************************************************************//** | 281 | /***********************************************************************//** |
| 282 | - * @brief Write Healpix definiton into FITS HDU. | 282 | + * @brief Write Healpix definiton into FITS HDU |
| 283 | * | 283 | * |
| 284 | * @param[in] hdu FITS HDU to which the Healpix definition will be written. | 284 | * @param[in] hdu FITS HDU to which the Healpix definition will be written. |
| 285 | * | 285 | * |
| @@ -292,7 +292,7 @@ void GWcsHPX::read(const GFitsHDU* hdu) | @@ -292,7 +292,7 @@ void GWcsHPX::read(const GFitsHDU* hdu) | ||
| 292 | * ORDERING = ordering() | 292 | * ORDERING = ordering() |
| 293 | * COORDSYS = coordsys() | 293 | * COORDSYS = coordsys() |
| 294 | ***************************************************************************/ | 294 | ***************************************************************************/ |
| 295 | -void GWcsHPX::write(GFitsHDU* hdu) | 295 | +void GWcsHPX::write(GFitsHDU* hdu) const |
| 296 | { | 296 | { |
| 297 | // Continue only if HDU is valid | 297 | // Continue only if HDU is valid |
| 298 | if (hdu != NULL) { | 298 | if (hdu != NULL) { |