Changeset 4343
- Timestamp:
- Jun 21, 2005, 5:00:27 PM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 8 edited
-
collections/psHash.c (modified) (5 diffs)
-
collections/psHash.h (modified) (4 diffs)
-
dataIO/psFits.c (modified) (7 diffs)
-
dataIO/psFits.h (modified) (5 diffs)
-
fits/psFits.c (modified) (7 diffs)
-
fits/psFits.h (modified) (5 diffs)
-
types/psHash.c (modified) (5 diffs)
-
types/psHash.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psHash.c
r4315 r4343 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 18 02:30:49$14 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-22 03:00:27 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 343 343 boolean value defining success or failure 344 344 *****************************************************************************/ 345 psBool psHashAdd(psHash* table,346 const char *key,347 psPtr data)345 bool psHashAdd(psHash* table, 346 const char *key, 347 psPtr data) 348 348 { 349 349 PS_ASSERT_PTR_NON_NULL(table, false); … … 365 365 The data associated with that key. 366 366 *****************************************************************************/ 367 psPtr psHashLookup( psHash* table, // table to lookup key in367 psPtr psHashLookup(const psHash* table, // table to lookup key in 368 368 const char *key) // key to lookup 369 369 { … … 371 371 PS_ASSERT_PTR_NON_NULL(key, NULL); 372 372 373 return doHashWork( table, key, NULL, false);373 return doHashWork((psPtr)table, key, NULL, false); 374 374 } 375 375 … … 402 402 } 403 403 404 psArray* psHashToArray( psHash* table)404 psArray* psHashToArray(const psHash* table) 405 405 { 406 406 PS_ASSERT_PTR_NON_NULL(table, NULL); -
trunk/psLib/src/collections/psHash.h
r4315 r4343 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 18 02:30:49$13 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-22 03:00:27 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 52 52 /// Insert entry into table. 53 psBool psHashAdd(53 bool psHashAdd( 54 54 psHash* table, ///< The table to insert in. 55 55 const char *key, ///< The key to use. … … 59 59 /// Lookup key in table. 60 60 psPtr psHashLookup( 61 psHash* table,///< The table to lookup key in.61 const psHash* table, ///< The table to lookup key in. 62 62 const char *key ///< The key to lookup. 63 63 ); … … 79 79 */ 80 80 psArray* psHashToArray( 81 psHash* table///< The table to convert to psArray.81 const psHash* table ///< The table to convert to psArray. 82 82 ); 83 83 -
trunk/psLib/src/dataIO/psFits.c
r4342 r4343 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-22 0 2:05:41$9 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-22 03:00:27 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 794 794 } 795 795 796 bool psFitsWriteImage( constpsFits* fits,797 constpsMetadata* header,796 bool psFitsWriteImage(psFits* fits, 797 psMetadata* header, 798 798 const psImage* input, 799 799 int numZPlanes) … … 845 845 // write the header, if any. 846 846 if (header != NULL) { 847 psFitsWriteHeader(header, fits);847 psFitsWriteHeader(header, (psPtr)fits); 848 848 } 849 849 … … 1020 1020 1021 1021 bool psFitsWriteHeader(const psMetadata* output, 1022 constpsFits* fits)1022 psFits* fits) 1023 1023 { 1024 1024 … … 1446 1446 } 1447 1447 1448 bool psFitsWriteTable( constpsFits* fits,1449 psMetadata* header,1450 psArray* table)1448 bool psFitsWriteTable(psFits* fits, 1449 const psMetadata* header, 1450 const psArray* table) 1451 1451 { 1452 1452 int status = 0; … … 1634 1634 } 1635 1635 1636 bool psFitsUpdateTable( constpsFits* fits,1637 psMetadata* data,1636 bool psFitsUpdateTable(psFits* fits, 1637 const psMetadata* data, 1638 1638 int row) 1639 1639 { … … 1668 1668 } 1669 1669 1670 psMetadataIterator* iter = psMetadataIteratorAlloc( data,PS_LIST_HEAD,NULL);1670 psMetadataIterator* iter = psMetadataIteratorAlloc((psPtr)data,PS_LIST_HEAD,NULL); 1671 1671 1672 1672 psMetadataItem* item; -
trunk/psLib/src/dataIO/psFits.h
r4342 r4343 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-22 0 2:05:41$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-22 03:00:27 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 156 156 bool psFitsWriteHeader( 157 157 const psMetadata* output, ///< the psMetadata data in which to write 158 const psFits* fits///< the psFits object158 psFits* fits ///< the psFits object 159 159 ); 160 160 … … 175 175 */ 176 176 bool psFitsWriteImage( 177 const psFits* fits,///< the psFits object178 const psMetadata* header,///< header items for the new HDU. Can be NULL.177 psFits* fits, ///< the psFits object 178 psMetadata* header, ///< header items for the new HDU. Can be NULL. 179 179 const psImage* input, ///< the image to output 180 180 int depth ///< the number of z-planes of the FITS image data cube … … 245 245 */ 246 246 bool psFitsWriteTable( 247 const psFits* fits,///< the psFits object248 psMetadata* header,///< header items for the new HDU. Can be NULL.249 psArray* table247 psFits* fits, ///< the psFits object 248 const psMetadata* header, ///< header items for the new HDU. Can be NULL. 249 const psArray* table 250 250 ///< Array of psMetadata items, which contains the output data items of each row. 251 251 ); … … 259 259 */ 260 260 bool psFitsUpdateTable( 261 constpsFits* fits, ///< the psFits object262 psMetadata* data,261 psFits* fits, ///< the psFits object 262 const psMetadata* data, 263 263 ///< Array of psMetadata items, which contains the output data items of each row. 264 264 int row ///< the row number to update. -
trunk/psLib/src/fits/psFits.c
r4342 r4343 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-22 0 2:05:41$9 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-22 03:00:27 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 794 794 } 795 795 796 bool psFitsWriteImage( constpsFits* fits,797 constpsMetadata* header,796 bool psFitsWriteImage(psFits* fits, 797 psMetadata* header, 798 798 const psImage* input, 799 799 int numZPlanes) … … 845 845 // write the header, if any. 846 846 if (header != NULL) { 847 psFitsWriteHeader(header, fits);847 psFitsWriteHeader(header, (psPtr)fits); 848 848 } 849 849 … … 1020 1020 1021 1021 bool psFitsWriteHeader(const psMetadata* output, 1022 constpsFits* fits)1022 psFits* fits) 1023 1023 { 1024 1024 … … 1446 1446 } 1447 1447 1448 bool psFitsWriteTable( constpsFits* fits,1449 psMetadata* header,1450 psArray* table)1448 bool psFitsWriteTable(psFits* fits, 1449 const psMetadata* header, 1450 const psArray* table) 1451 1451 { 1452 1452 int status = 0; … … 1634 1634 } 1635 1635 1636 bool psFitsUpdateTable( constpsFits* fits,1637 psMetadata* data,1636 bool psFitsUpdateTable(psFits* fits, 1637 const psMetadata* data, 1638 1638 int row) 1639 1639 { … … 1668 1668 } 1669 1669 1670 psMetadataIterator* iter = psMetadataIteratorAlloc( data,PS_LIST_HEAD,NULL);1670 psMetadataIterator* iter = psMetadataIteratorAlloc((psPtr)data,PS_LIST_HEAD,NULL); 1671 1671 1672 1672 psMetadataItem* item; -
trunk/psLib/src/fits/psFits.h
r4342 r4343 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-22 0 2:05:41$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-22 03:00:27 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 156 156 bool psFitsWriteHeader( 157 157 const psMetadata* output, ///< the psMetadata data in which to write 158 const psFits* fits///< the psFits object158 psFits* fits ///< the psFits object 159 159 ); 160 160 … … 175 175 */ 176 176 bool psFitsWriteImage( 177 const psFits* fits,///< the psFits object178 const psMetadata* header,///< header items for the new HDU. Can be NULL.177 psFits* fits, ///< the psFits object 178 psMetadata* header, ///< header items for the new HDU. Can be NULL. 179 179 const psImage* input, ///< the image to output 180 180 int depth ///< the number of z-planes of the FITS image data cube … … 245 245 */ 246 246 bool psFitsWriteTable( 247 const psFits* fits,///< the psFits object248 psMetadata* header,///< header items for the new HDU. Can be NULL.249 psArray* table247 psFits* fits, ///< the psFits object 248 const psMetadata* header, ///< header items for the new HDU. Can be NULL. 249 const psArray* table 250 250 ///< Array of psMetadata items, which contains the output data items of each row. 251 251 ); … … 259 259 */ 260 260 bool psFitsUpdateTable( 261 constpsFits* fits, ///< the psFits object262 psMetadata* data,261 psFits* fits, ///< the psFits object 262 const psMetadata* data, 263 263 ///< Array of psMetadata items, which contains the output data items of each row. 264 264 int row ///< the row number to update. -
trunk/psLib/src/types/psHash.c
r4315 r4343 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 18 02:30:49$14 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-22 03:00:27 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 343 343 boolean value defining success or failure 344 344 *****************************************************************************/ 345 psBool psHashAdd(psHash* table,346 const char *key,347 psPtr data)345 bool psHashAdd(psHash* table, 346 const char *key, 347 psPtr data) 348 348 { 349 349 PS_ASSERT_PTR_NON_NULL(table, false); … … 365 365 The data associated with that key. 366 366 *****************************************************************************/ 367 psPtr psHashLookup( psHash* table, // table to lookup key in367 psPtr psHashLookup(const psHash* table, // table to lookup key in 368 368 const char *key) // key to lookup 369 369 { … … 371 371 PS_ASSERT_PTR_NON_NULL(key, NULL); 372 372 373 return doHashWork( table, key, NULL, false);373 return doHashWork((psPtr)table, key, NULL, false); 374 374 } 375 375 … … 402 402 } 403 403 404 psArray* psHashToArray( psHash* table)404 psArray* psHashToArray(const psHash* table) 405 405 { 406 406 PS_ASSERT_PTR_NON_NULL(table, NULL); -
trunk/psLib/src/types/psHash.h
r4315 r4343 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 18 02:30:49$13 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-22 03:00:27 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 51 51 52 52 /// Insert entry into table. 53 psBool psHashAdd(53 bool psHashAdd( 54 54 psHash* table, ///< The table to insert in. 55 55 const char *key, ///< The key to use. … … 59 59 /// Lookup key in table. 60 60 psPtr psHashLookup( 61 psHash* table,///< The table to lookup key in.61 const psHash* table, ///< The table to lookup key in. 62 62 const char *key ///< The key to lookup. 63 63 ); … … 79 79 */ 80 80 psArray* psHashToArray( 81 psHash* table///< The table to convert to psArray.81 const psHash* table ///< The table to convert to psArray. 82 82 ); 83 83
Note:
See TracChangeset
for help on using the changeset viewer.
