IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12831


Ignore:
Timestamp:
Apr 13, 2007, 5:01:11 PM (19 years ago)
Author:
Paul Price
Message:

Declaring parameters const where appropriate.

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

Legend:

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

    r12762 r12831  
    1919
    2020// define an input-type pmFPAfile, bind to the optional fpa if supplied
    21 pmFPAfile *pmFPAfileDefineInput(pmConfig *config, pmFPA *fpa, const char *name)
     21pmFPAfile *pmFPAfileDefineInput(const pmConfig *config, pmFPA *fpa, const char *name)
    2222{
    2323    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    104104
    105105// define a pmFPAfile, bind to the optional fpa if supplied
    106 pmFPAfile *pmFPAfileDefineOutput(pmConfig *config, pmFPA *fpa, const char *name)
     106pmFPAfile *pmFPAfileDefineOutput(const pmConfig *config, pmFPA *fpa, const char *name)
    107107{
    108108    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    237237// save the pmFPAfile on config->files
    238238// return the pmFPAfile (a view to the one saved on config->files)
    239 pmFPAfile *pmFPAfileDefineFromArgs (bool *found, pmConfig *config, const char *filename, const char *argname)
     239pmFPAfile *pmFPAfileDefineFromArgs(bool *found, pmConfig *config, const char *filename, const char *argname)
    240240{
    241241    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    406406// save the pmFPAfile on config->files
    407407// return the pmFPAfile (a view to the one saved on config->files)
    408 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, pmConfig *config, const char *filename, const char *argname)
     408pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, const pmConfig *config, const char *filename, const char *argname)
    409409{
    410410    PS_ASSERT_PTR_NON_NULL(input, NULL);
     
    641641// define the named pmFPAfile from the camera->config
    642642// only valid for pmFPAfile->mode = READ
    643 pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, const char *filename)
     643pmFPAfile *pmFPAfileDefineFromConf (bool *found, const pmConfig *config, const char *filename)
    644644{
    645645    PS_ASSERT_PTR_NON_NULL(config, false);
     
    703703// save the pmFPAfile on config->files
    704704// return the pmFPAfile (a view to the one saved on config->files)
    705 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, const char *filename,
     705pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, const pmConfig *config, const char *filename,
    706706                                     pmFPA *input, pmDetrendType type)
    707707{
     
    860860// create a new output pmFPAfile based on an existing FPA
    861861// only valid for pmFPAfile->mode == WRITE (or internal?)
    862 pmFPAfile *pmFPAfileDefineFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename)
     862pmFPAfile *pmFPAfileDefineFromFPA (const pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename)
    863863{
    864864    PS_ASSERT_PTR_NON_NULL(config, false);
     
    896896// create a new output pmFPAfile based on an existing FPA
    897897// only valid for pmFPAfile->mode == WRITE (or internal?)
    898 pmFPAfile *pmFPAfileDefineNewCamera (pmConfig *config, const char *filename)
     898pmFPAfile *pmFPAfileDefineNewCamera (const pmConfig *config, const char *filename)
    899899{
    900900    PS_ASSERT_PTR_NON_NULL(config, false);
     
    915915}
    916916
    917 pmFPAfile *pmFPAfileDefineChipMosaic(pmConfig *config, pmFPA *src, const char *filename)
     917pmFPAfile *pmFPAfileDefineChipMosaic(const pmConfig *config, pmFPA *src, const char *filename)
    918918{
    919919    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    989989}
    990990
    991 pmFPAfile *pmFPAfileDefineFPAMosaic(pmConfig *config, pmFPA *src, const char *filename)
     991pmFPAfile *pmFPAfileDefineFPAMosaic(const pmConfig *config, pmFPA *src, const char *filename)
    992992{
    993993    PS_ASSERT_PTR_NON_NULL(config, NULL);
  • trunk/psModules/src/camera/pmFPAfileDefine.h

    r12696 r12831  
    44 * @author EAM, IfA
    55 *
    6  * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-03-30 21:12:56 $
     6 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-04-14 03:01:11 $
    88 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    99 */
     
    1919// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    2020// reference count is held by the config->files metadata.
    21 pmFPAfile *pmFPAfileDefineInput (pmConfig *config, pmFPA *fpa, const char *name);
     21pmFPAfile *pmFPAfileDefineInput (const pmConfig *config, pmFPA *fpa, const char *name);
    2222
    2323// load the pmFPAfile information from the camera configuration data
     
    2525// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    2626// reference count is held by the config->files metadata.
    27 pmFPAfile *pmFPAfileDefineOutput (pmConfig *config, pmFPA *fpa, const char *name);
     27pmFPAfile *pmFPAfileDefineOutput (const pmConfig *config, pmFPA *fpa, const char *name);
    2828
    2929// look for the given argname on the argument list.  find the give filename from the file rules
     
    3737// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    3838// reference count is held by the config->files metadata.
    39 pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, pmConfig *config, const char *filename, const char *argname);
     39pmFPAfile *pmFPAfileBindFromArgs (bool *found, pmFPAfile *input, const pmConfig *config, const char *filename, const char *argname);
    4040
    4141// look for the given argname on the argument list.  find the give filename from the file rules
     
    4343// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    4444// reference count is held by the config->files metadata.
    45 pmFPAfile *pmFPAfileDefineFromConf (bool *found, pmConfig *config, const char *filename);
     45pmFPAfile *pmFPAfileDefineFromConf (bool *found, const pmConfig *config, const char *filename);
    4646
    4747// look for the given argname on the argument list.  find the give filename from the file rules
     
    4949// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    5050// reference count is held by the config->files metadata.
    51 pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, pmConfig *config, const char *filename,
     51pmFPAfile *pmFPAfileDefineFromDetDB (bool *found, const pmConfig *config, const char *filename,
    5252                                     pmFPA *input, pmDetrendType type);
    5353
     
    5656// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    5757// reference count is held by the config->files metadata.
    58 pmFPAfile *pmFPAfileDefineFromFPA (pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename);
     58pmFPAfile *pmFPAfileDefineFromFPA (const pmConfig *config, pmFPA *src, int xBin, int yBin, const char *filename);
    5959
    6060// create a new output pmFPAfile based on an existing FPA
     
    6363// Note that the returned pmFPAfile is a view only, so it should not be freed by the caller --- the only
    6464// reference count is held by the config->files metadata.
    65 pmFPAfile *pmFPAfileDefineNewCamera (pmConfig *config, const char *filename);
     65pmFPAfile *pmFPAfileDefineNewCamera (const pmConfig *config, const char *filename);
    6666
    6767/// Create a new output pmFPAfile based upon a chip mosaic of an existing FPA
     
    6969/// The new pmFPAfile is inserted into the config->files metadata, freed and returned; so that the user does
    7070/// not have to (and should not!) free the result.
    71 pmFPAfile *pmFPAfileDefineChipMosaic(pmConfig *config, ///< Configuration data
     71pmFPAfile *pmFPAfileDefineChipMosaic(const pmConfig *config, ///< Configuration data
    7272                                     pmFPA *src, ///< Source FPA
    7373                                     const char *filename ///< Output (root) filename
     
    7878/// The new pmFPAfile is inserted into the config->files metadata, freed and returned; so that the user does
    7979/// not have to (and should not!) free the result.
    80 pmFPAfile *pmFPAfileDefineFPAMosaic(pmConfig *config, ///< Configuration data
     80pmFPAfile *pmFPAfileDefineFPAMosaic(const pmConfig *config, ///< Configuration data
    8181                                    pmFPA *src, ///< Source FPA
    8282                                    const char *filename ///< Output (root) filename
Note: See TracChangeset for help on using the changeset viewer.