Changeset 1406 for trunk/psLib/src/astronomy/psMetadata.c
- Timestamp:
- Aug 6, 2004, 12:34:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psMetadata.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psMetadata.c
r1398 r1406 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-0 5 23:39:23$13 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-06 22:34:05 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 280 280 return false; 281 281 } 282 } else if(value != NULL) { 283 284 // The key was found and the new metadata item is a folder node. Don't add new metadata item, since 285 // it will wipe out existing node. 286 psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s", 287 metadataItem->name ); 288 return false; 289 } else { 290 291 // Duplicate key not found. Add new metadata item to metadata collection's hash 292 if(!psHashAdd( mdTable, key, metadataItem )) { 293 psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s", 282 } else 283 if(value != NULL) { 284 285 // The key was found and the new metadata item is a folder node. Don't add new metadata item, since 286 // it will wipe out existing node. 287 psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s", 294 288 metadataItem->name ); 295 289 return false; 296 } 297 } 290 } else { 291 292 // Duplicate key not found. Add new metadata item to metadata collection's hash 293 if(!psHashAdd( mdTable, key, metadataItem )) { 294 psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s", 295 metadataItem->name ); 296 return false; 297 } 298 } 298 299 299 300 // Add all items to metadata collection's list, even if they have the same metadata item names … … 612 613 psError( __func__, "Null extName and extNum = 0 not allowed" ); 613 614 return NULL; 614 } else if(extName && extNum) { 615 psError( __func__, "Both extName and extNum arguments should not have non zero values." ); 616 return NULL; 617 } 615 } else 616 if(extName && extNum) { 617 psError( __func__, "Both extName and extNum arguments should not have non zero values." ); 618 return NULL; 619 } 618 620 619 621 // Allocate metadata if user didn't
Note:
See TracChangeset
for help on using the changeset viewer.
