IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15249


Ignore:
Timestamp:
Oct 8, 2007, 5:00:05 PM (19 years ago)
Author:
Paul Price
Message:

Adding assertion on whether the FITS file is writable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.h

    r15179 r15249  
    44 * @author Robert DeSonia, MHPCC
    55 *
    6  * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-10-03 21:27:21 $
     6 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-10-09 03:00:05 $
    88 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    99 */
     
    5656    char *extword;                      ///< user-specified word to name extensions (NULL implies EXTNAME)
    5757    struct {
    58         bool compression;               ///< Honour compression convention, handling compressed images
     58        bool compression;               ///< Compression convention: handling of compressed images
    5959    } conventions;                      ///< Conventions to honour
    6060} psFits;
     
    309309}
    310310
     311#define PS_ASSERT_FITS_WRITABLE(NAME, RVAL) \
     312if (!(NAME)->writable) { \
     313    psError(PS_ERR_UNEXPECTED_NULL, true, "Error: FITS file %s not open for writing.", #NAME); \
     314    return RVAL; \
     315}
     316
    311317/// @}
    312318#endif // #ifndef PS_FITS_H
Note: See TracChangeset for help on using the changeset viewer.