IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12299


Ignore:
Timestamp:
Mar 7, 2007, 2:41:32 PM (19 years ago)
Author:
Paul Price
Message:

pmFPAfilenameFromRule: Adding const. Changing return type to psString to indicate that the result needs to be returned.

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.c

    r11793 r12299  
    5151    psFree (file->extxtra);
    5252
     53    psFree(file->detrend);
     54
    5355    psFree (file->filename);
    5456    psFree (file->extname);
     
    9193    file->state = PM_FPA_STATE_CLOSED;
    9294
     95    file->detrend = NULL;
     96
    9397    file->xBin = 1;
    9498    file->yBin = 1;
     
    173177
    174178// select the rule from the camera configuration, perform substitutions as needed
    175 char *pmFPAfileNameFromRule (char *rule, pmFPAfile *file, const pmFPAview *view)
     179psString pmFPAfileNameFromRule(const char *rule, const pmFPAfile *file, const pmFPAview *view)
    176180{
    177181    PS_ASSERT_PTR_NON_NULL(rule, NULL);
  • trunk/psModules/src/camera/pmFPAfile.h

    r11793 r12299  
    44 * @author EAM, IfA
    55 *
    6  * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-02-15 00:34:00 $
     6 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-03-08 00:41:32 $
    88 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    99 */
     
    1919#include "pmFPA.h"
    2020#include "pmFPAview.h"
     21#include "pmDetrendDB.h"
    2122
    2223typedef enum {
     
    8889    char *extname;   // the current name of an active file extension
    8990
    90     bool save;
     91    pmDetrendSelectResults *detrend;    // Detrend information, from pmDetrendSelect
     92
     93    bool save;                          // Should the file be saved?
    9194
    9295    // the following elements are used for WRITE-mode IMAGE-type pmFPAfiles to inform
     
    9699    int yBin;    // desired binning in y direction
    97100
    98     psMetadata *camera;
    99     psMetadata *format;
     101    psMetadata *camera;                 // Camera configuration
     102    psMetadata *format;                 // Camera format
    100103}
    101104pmFPAfile;
     
    117120
    118121// convert the rule to a name based on the current view
    119 char *pmFPAfileNameFromRule (char *rule, pmFPAfile *file, const pmFPAview *view);
     122psString pmFPAfileNameFromRule(const char *rule, const pmFPAfile *file, const pmFPAview *view);
    120123
    121124bool pmFPAfileCopyView (pmFPA *out, pmFPA *in, const pmFPAview *view);
Note: See TracChangeset for help on using the changeset viewer.