Changeset 10447
- Timestamp:
- Dec 4, 2006, 12:21:28 PM (19 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAConstruct.c (modified) (2 diffs)
-
camera/pmFPAfile.c (modified) (8 diffs)
-
concepts/pmConceptsStandard.c (modified) (1 diff)
-
config/pmConfig.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r9730 r10447 233 233 const char *name = psMetadataLookupStr(&mdok, chip->concepts, "CHIP.NAME"); 234 234 if (mdok && name && strlen(name) > 0) { 235 contentKey = psStringSubstitute(contentKey, name, "{CHIP.NAME}");235 psStringSubstitute(&contentKey, name, "{CHIP.NAME}"); 236 236 } 237 237 } … … 245 245 const char *name = psMetadataLookupStr(&mdok, cell->concepts, "CELL.NAME"); 246 246 if (mdok && name && strlen(name) > 0) { 247 contentKey = psStringSubstitute(contentKey, name, "{CELL.NAME}");247 psStringSubstitute(&contentKey, name, "{CELL.NAME}"); 248 248 } 249 249 } -
trunk/psModules/src/camera/pmFPAfile.c
r10385 r10447 182 182 char *name = psMetadataLookupStr (NULL, file->names, "OUTPUT"); 183 183 if (name != NULL) { 184 newName = psStringSubstitute (newName, name, "{OUTPUT}");184 psStringSubstitute(&newName, name, "{OUTPUT}"); 185 185 } 186 186 } … … 190 190 char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 191 191 if (name != NULL) { 192 newName = psStringSubstitute (newName, name, "{CHIP.NAME}");192 psStringSubstitute(&newName, name, "{CHIP.NAME}"); 193 193 } 194 194 } … … 201 201 psStringAppend (&name, "%02d", view->chip); 202 202 } 203 newName = psStringSubstitute (newName, name, "{CHIP.N}");203 psStringSubstitute(&newName, name, "{CHIP.N}"); 204 204 psFree (name); 205 205 } … … 209 209 char *name = psMetadataLookupStr (NULL, cell->concepts, "CELL.NAME"); 210 210 if (name != NULL) { 211 newName = psStringSubstitute (newName, name, "{CELL.NAME}");211 psStringSubstitute(&newName, name, "{CELL.NAME}"); 212 212 } 213 213 } … … 220 220 psStringAppend (&name, "%02d", view->cell); 221 221 } 222 newName = psStringSubstitute (newName, name, "{CELL.N}");222 psStringSubstitute(&newName, name, "{CELL.N}"); 223 223 } 224 224 if (strstr (newName, "{EXTNAME}") != NULL) { 225 225 pmHDU *hdu = pmFPAviewThisHDU (view, file->fpa); 226 226 if (hdu->extname && *hdu->extname) { 227 newName = psStringSubstitute (newName, hdu->extname, "{EXTNAME}");227 psStringSubstitute(&newName, hdu->extname, "{EXTNAME}"); 228 228 } 229 229 } … … 232 232 char *name = psMetadataLookupStr (NULL, file->fpa->concepts, "FPA.FILTER"); 233 233 if (name && *name) { 234 newName = psStringSubstitute (newName, name, "{FILTER}");234 psStringSubstitute(&newName, name, "{FILTER}"); 235 235 } 236 236 } … … 242 242 char *name = psStringCopy ("isp"); 243 243 if (name && *name) { 244 newName = psStringSubstitute (newName, name, "{CAMERA}");244 psStringSubstitute(&newName, name, "{CAMERA}"); 245 245 } 246 246 psFree (name); … … 254 254 char *ID = psMetadataLookupStr (NULL, filterTable, filterName); 255 255 if (ID && *ID) { 256 newName = psStringSubstitute (newName, ID, "{FILTER.ID}");256 psStringSubstitute(&newName, ID, "{FILTER.ID}"); 257 257 } 258 258 } -
trunk/psModules/src/concepts/pmConceptsStandard.c
r9677 r10447 324 324 // Need TIMESYS first 325 325 psString timesysName = psStringCopy(pattern->name); // e.g., "CELL.TIME" --> "CELL.TIMESYS" 326 timesysName = psStringSubstitute(timesysName, "TIMESYS", "TIME");326 psStringSubstitute(×ysName, "TIMESYS", "TIME"); 327 327 bool mdok = false; // Result of MD lookup 328 328 psTimeType timeSys; // The time system -
trunk/psModules/src/config/pmConfig.c
r10428 r10447 4 4 * @author EAM (IfA) 5 5 * 6 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $7 * @date $Date: 2006-12-04 2 0:41:51$6 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2006-12-04 22:21:28 $ 8 8 * 9 9 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 101 101 102 102 psTrace("psModules.config", 7, "Replacing %s with %s in directory %s\n", envvar, valueSlash, dir); 103 dir = psStringSubstitute(dir, valueSlash, envvar);103 psStringSubstitute(&dir, valueSlash, envvar); 104 104 psFree(envvar); 105 105 psFree(valueSlash); … … 831 831 // strip file:// from front of name 832 832 if (!strncasecmp (newName, "file://", strlen("file://"))) { 833 newName = psStringSubstitute (newName, "", "file://");833 psStringSubstitute(&newName, "", "file://"); 834 834 } 835 835
Note:
See TracChangeset
for help on using the changeset viewer.
