IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4898 for trunk/psLib/src/fits


Ignore:
Timestamp:
Aug 29, 2005, 3:14:13 PM (21 years ago)
Author:
drobbin
Message:

Implemented psMemCheckType functions and tests. Some testing remains unfinished.

Location:
trunk/psLib/src/fits
Files:
2 edited

Legend:

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

    r4891 r4898  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-08-27 01:33:41 $
     9 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-08-30 01:14:13 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    253253    return fits;
    254254}
     255
     256
     257bool psMemCheckFits(psPtr ptr)
     258{
     259    return ( psMemGetDeallocator(ptr) == (psFreeFunc)fitsFree );
     260}
     261
    255262
    256263bool psFitsMoveExtName(const psFits* fits,
  • trunk/psLib/src/fits/psFits.h

    r4343 r4898  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-22 03:00:27 $
     9 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-08-30 01:14:13 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6262);
    6363
     64/** Checks the type of a particular pointer.
     65 *
     66 *  Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
     67 *
     68 *  @return bool:       True if the pointer matches a psFits structure, false otherwise.
     69 */
     70bool psMemCheckFits(
     71    psPtr ptr                          ///< the pointer whose type to check
     72);
     73
     74
    6475/** Moves the FITS HDU to the specified extension name.
    6576 *
Note: See TracChangeset for help on using the changeset viewer.