Changeset 9588 for trunk/psModules/src/camera/pmFPAConstruct.c
- Timestamp:
- Oct 16, 2006, 2:55:01 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAConstruct.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAConstruct.c
r9584 r9588 250 250 } 251 251 252 // MORE SUBSTITUTION OPTIONS HERE!252 // XXX: MORE SUBSTITUTION OPTIONS HERE! 253 253 254 254 psTrace("psModules.camera", 5, "Looking up %s in the CONTENTS.\n", contentKey); … … 385 385 } 386 386 387 // Return the level at which EXTENSIONS go, from the FILE metadata within the camera format 387 388 static pmFPALevel hduLevel(const psMetadata *format // The camera format configuration 388 389 ) … … 420 421 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// 421 422 422 // Construct an FPA instance on the basis of a camera configuration 423 pmFPA *pmFPAConstruct(const psMetadata *camera // The camera configuration 424 ) 423 pmFPA *pmFPAConstruct(const psMetadata *camera) 425 424 { 426 425 PS_ASSERT_PTR_NON_NULL(camera, NULL); … … 464 463 465 464 466 // This is the engine for the pmFPAAddSourceFrom{Header,View} functions 465 // This is the engine for the pmFPAAddSourceFrom{Header,View} functions. 466 // It uses the camera format configuration information to determine where HDUs go in the FPA. 467 467 // It returns a view corresponding to the PHU 468 468 static pmFPAview *addSource(pmFPA *fpa, // The FPA … … 555 555 // In cases 2 and 3, the CONTENTS is of type METADATA, and is either a menu (if EXTENSIONS=NONE), or a 556 556 // list of extensions otherwise. 557 psMetadata *contents = psMetadataLookupMetadata(&mdok, format, "CONTENTS"); // The contents of the FITSfile557 psMetadata *contents = psMetadataLookupMetadata(&mdok, format, "CONTENTS"); // The contents of the file 558 558 if (!mdok || !contents) { 559 559 if (mdok && !contents) { … … 751 751 752 752 753 bool pmFPAAddSourceFromView(pmFPA *fpa, // The FPA 754 const pmFPAview *phuView, // The view, corresponding to the PHU 755 const psMetadata *format // Format of file 756 ) 753 bool pmFPAAddSourceFromView(pmFPA *fpa, const pmFPAview *phuView, const psMetadata *format) 757 754 { 758 755 PS_ASSERT_PTR_NON_NULL(fpa, false); … … 762 759 pmFPAview *view = addSource(fpa, phuView, NULL, format); 763 760 bool status = (view == NULL); 764 psFree (view);761 psFree(view); 765 762 return status; 766 763 } 767 764 768 // Add an input file to the FPA 769 pmFPAview *pmFPAAddSourceFromHeader(pmFPA *fpa, // The FPA 770 psMetadata *phu, // Primary header of file 771 const psMetadata *format // Format of file 772 ) 765 pmFPAview *pmFPAAddSourceFromHeader(pmFPA *fpa, psMetadata *phu, const psMetadata *format) 773 766 { 774 767 PS_ASSERT_PTR_NON_NULL(fpa, NULL); … … 790 783 } 791 784 792 // isFPAname already defined, new name must match it; otherwise, warn the user that something potentially785 // If FPAname already defined, new name must match it; otherwise, warn the user that something potentially 793 786 // bad is happening. 794 787 const char *currentFPAname = psMetadataLookupStr(&mdok, fpa->concepts, "FPA.NAME"); // Current name … … 804 797 805 798 806 // Print out the focal plane structure 807 void pmFPAPrint(FILE *fd, // File descriptor to which to print 808 pmFPA *fpa, // FPA to print 809 bool header, // Print headers? 810 bool concepts // Print concepts? 811 ) 799 void pmFPAPrint(FILE *fd, const pmFPA *fpa, bool header, bool concepts) 812 800 { 813 801 PS_ASSERT_PTR_NON_NULL(fpa,);
Note:
See TracChangeset
for help on using the changeset viewer.
