Commit cb1b53a6a4a0a57367d898471a45f7cc71d274d0

Authored by knodlseder
1 parent 1ccf999b

read() and write() now pure virtual in base class

include/GWcsHPX.hpp
... ... @@ -52,10 +52,10 @@ public:
52 52  
53 53 // Implemented pure virtual methods
54 54 std::string type(void) const;
  55 + void read(const GFitsHDU* hdu);
  56 + void write(GFitsHDU* hdu) const;
55 57  
56 58 // Overloaded base class methods
57   - void read(const GFitsHDU* hdu);
58   - void write(GFitsHDU* hdu);
59 59 double omega(const int& pix) const;
60 60 GSkyDir pix2dir(const int& pix);
61 61 int dir2pix(GSkyDir dir) const;
... ...
src/sky/GWcsHPX.cpp
... ... @@ -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 226 * @param[in] hdu FITS HDU containing the Healpix definition.
227 227 *
228   - * @exception GException::wcs
  228 + * @exception GException::wcs
229 229 * Unable to load Healpix definition from HDU.
230   - * @exception GException::wcs_bad_coords
  230 + * @exception GException::wcs_bad_coords
231 231 * Invalid coordsys parameter.
232   - * @exception GException::wcs_hpx_bad_ordering
  232 + * @exception GException::wcs_hpx_bad_ordering
233 233 * Invalid ordering parameter.
234 234 ***************************************************************************/
235 235 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 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 292 * ORDERING = ordering()
293 293 * COORDSYS = coordsys()
294 294 ***************************************************************************/
295   -void GWcsHPX::write(GFitsHDU* hdu)
  295 +void GWcsHPX::write(GFitsHDU* hdu) const
296 296 {
297 297 // Continue only if HDU is valid
298 298 if (hdu != NULL) {
... ...