Changeset 6553 for branches/rel10_ifa/psModules/src/config/pmConfig.h
- Timestamp:
- Mar 8, 2006, 5:09:28 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/config/pmConfig.h
r6297 r6553 3 3 * @author PAP, IfA 4 4 * 5 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $6 * @date $Date: 2006-0 2-02 04:51:14$5 * @version $Revision: 1.3.4.1 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-03-09 03:09:28 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 15 15 16 16 17 // Configuration information 18 typedef struct 19 { 20 psMetadata *site; // Site configuration 21 psMetadata *camera; // Camera specification 22 psMetadata *recipe; // Recipe for processing 23 psMetadata *arguments; // Command-line arguments 24 psDB *database; // Database handle 25 } 26 pmConfig; 27 28 pmConfig *pmConfigAlloc(void); 17 29 18 30 /** pmConfigRead 19 * 31 * 20 32 * pmConfigRead shall load the site configuration (according to the above rule 21 33 * for determining the source). The camera configuration shall also be loaded if … … 32 44 * 33 45 */ 34 bool pmConfigRead( 35 psMetadata **site, 36 psMetadata **camera, 37 psMetadata **recipe, 46 pmConfig *pmConfigRead( 38 47 int *argc, 39 48 char **argv, 40 const char *recipeName 41 ); 42 49 const char *recipeName); 43 50 44 51 45 52 /** pmConfigValidateCamera 46 * 53 * 47 54 * This function, used by pmConfigCameraFromHeader, shall return true if the 48 55 * FITS header matches the rule contained in the camera configuration (see 49 56 * x2.2.2.3); otherwise it shall return false. 50 * 57 * 51 58 */ 52 bool pmConfigValidateCamera( 53 const psMetadata *camera, 54 const psMetadata *header 55 ); 56 59 bool pmConfigValidateCameraFormat( 60 const psMetadata *cameraFormat, 61 const psMetadata *header); 57 62 58 63 59 64 /** pmConfigCameraFromHeader 60 * 65 * 61 66 * pmConfigCameraFromHeader shall load the camera configuration based on the 62 67 * contents of the FITS header, using the list of known cameras contained in the 63 68 * site configuration. If more than one camera matches the FITS header, a warning 64 69 * shall be generated and the first matching camera returned. 65 * 70 * 66 71 */ 67 psMetadata *pmConfigCameraF romHeader(68 const psMetadata *site,69 const psMetadata *header 72 psMetadata *pmConfigCameraFormatFromHeader( 73 pmConfig *config, // The configuration 74 const psMetadata *header // The FITS header 70 75 ); 71 76 72 77 73 74 78 /** pmConfigRecipeFromCamera 75 * 79 * 76 80 * pmConfigRecipeFromCamera shall load the recipe configuration based on the 77 * recipeName and the list of known recipes contained in the camera 81 * recipeName and the list of known recipes contained in the camera 78 82 * configuration. 79 * 83 * 80 84 */ 81 psMetadata *pmConfigRecipeFromCamera(82 const psMetadata *camera,85 bool pmConfigRecipeFromCamera( 86 pmConfig *config, 83 87 const char *recipeName 84 88 ); 85 89 86 90 /** pmConfigDB 87 * 91 * 88 92 * pmConfigDB shall use the site configuration data to open a database handle. 89 93 * This is fairly straightforward at the moment, but will change when we beef up 90 94 * security. (TBD) 91 * 95 * 92 96 */ 93 97 #ifdef DOMIT_PSDB
Note:
See TracChangeset
for help on using the changeset viewer.
