IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2006, 5:20:08 PM (20 years ago)
Author:
Paul Price
Message:

Fixing pmFPAfileDefineFromConf to allow interpolation on filenames. Most of the code wasn't required, since it is in pmFPAfileOpen (I think Gene said pmFPAfileDefineFromConf was coded early on, before everything got settled) --- just had to set found to true, and return a pmFPAfile. To get this change to work, added a check in pmFPAfileRead to see if the file is open (it doesn't know the file level a-priori).

File:
1 edited

Legend:

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

    r8865 r8879  
    247247    }
    248248
     249    // We need to read it --- double-check it's open!
     250    if (file->state == PM_FPA_STATE_CLOSED) {
     251        file->fileLevel = level;
     252        if (!pmFPAfileOpen (file, view, config)) {
     253            psError(PS_ERR_IO, false, "failed to open file %s when attempting to read", file->name);
     254            return false;
     255        }
     256    }
     257
    249258    switch (file->type) {
    250259    case PM_FPA_FILE_IMAGE:
Note: See TracChangeset for help on using the changeset viewer.