Changeset 18061 for trunk/psModules
- Timestamp:
- Jun 10, 2008, 10:28:59 AM (18 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAfileDefine.c (modified) (4 diffs)
-
camera/pmFPAfileIO.c (modified) (1 diff)
-
config/pmConfig.c (modified) (3 diffs)
-
config/pmConfig.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r18035 r18061 457 457 458 458 // this function is implicitly an INPUT operation: do not create the file 459 psString realName = pmConfigConvertFilename (infiles->data[0], config, false );459 psString realName = pmConfigConvertFilename (infiles->data[0], config, false, false); 460 460 if (!realName) { 461 461 psError(PS_ERR_IO, false, "Failed to convert file name %s\n", (char *) infiles->data[0]); … … 538 538 if (i > 0) { 539 539 // this function is implicitly an INPUT operation: do not create the file 540 psString realName = pmConfigConvertFilename (infiles->data[i], config, false );540 psString realName = pmConfigConvertFilename (infiles->data[i], config, false, false); 541 541 if (!realName) { 542 542 psError(PS_ERR_IO, false, "Failed to convert file name %s", (char *) infiles->data[i]); … … 672 672 for (int i = 0; i < infiles->n; i++) { 673 673 // this function is implicitly an INPUT operation: do not create the file 674 psString realName = pmConfigConvertFilename (infiles->data[i], config, false );674 psString realName = pmConfigConvertFilename (infiles->data[i], config, false, false); 675 675 if (!realName) { 676 676 psError(PS_ERR_IO, false, "Failed to convert file name %s", (char *) infiles->data[i]); … … 925 925 // Prepend the global path to the file rule 926 926 // this function is implicitly an INPUT operation: do not create the file 927 psString tmpName = pmConfigConvertFilename(file->filerule, config, false );927 psString tmpName = pmConfigConvertFilename(file->filerule, config, false, false); 928 928 psFree (file->filerule); 929 929 file->filerule = tmpName; -
trunk/psModules/src/camera/pmFPAfileIO.c
r18028 r18061 752 752 // apply filename mangling rules (file://, path://, neb://) 753 753 bool create = file->mode == PM_FPA_MODE_WRITE ? true : false; 754 psString tmpName = pmConfigConvertFilename (file->filename, config, create );754 psString tmpName = pmConfigConvertFilename (file->filename, config, create, false); 755 755 psFree (file->filename); 756 756 file->filename = tmpName; -
trunk/psModules/src/config/pmConfig.c
r18036 r18061 556 556 } 557 557 if (logDest) { 558 psString resolved = pmConfigConvertFilename(logDest, config, true ); // Resolved filename558 psString resolved = pmConfigConvertFilename(logDest, config, true, false); // Resolved filename 559 559 if (!resolved || strlen(resolved) == 0) { 560 560 psWarning("Unable to resolve log destination: %s --- ignored", logDest); … … 614 614 } 615 615 if (traceDest) { 616 psString resolved = pmConfigConvertFilename(traceDest, config, true ); // Resolved filename616 psString resolved = pmConfigConvertFilename(traceDest, config, true, false); // Resolved filename 617 617 if (!resolved || strlen(resolved) == 0) { 618 618 psWarning("Unable to resolve trace destination: %s --- ignored", traceDest); … … 1490 1490 1491 1491 // convert the supplied name, create a new output psString 1492 psString pmConfigConvertFilename(const char *filename, const pmConfig *config, bool create )1492 psString pmConfigConvertFilename(const char *filename, const pmConfig *config, bool create, bool truncate) 1493 1493 { 1494 1494 PS_ASSERT_STRING_NON_EMPTY(filename, NULL); -
trunk/psModules/src/config/pmConfig.h
r17992 r18061 5 5 * @author Eugene Magnier, IfA 6 6 * 7 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2008-06- 09 00:38:42$7 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-06-10 20:28:25 $ 9 9 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 10 10 */ … … 163 163 const char *filename, ///< file path/URI 164 164 const pmConfig *config, ///< configuration 165 bool create ///< create the file if it doesn't exist 165 bool create, ///< create the file if it doesn't exist 166 bool truncate ///< truncate the file (if it exists) 166 167 ); 167 168
Note:
See TracChangeset
for help on using the changeset viewer.
