public software.sextractor

[/] [trunk/] [src/] [key.h] - Blame information for rev 233

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 233 bertin
/*
2
*                               key.h
3 2 bertin
*
4 233 bertin
* Keyword structure definition.
5 2 bertin
*
6 233 bertin
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7 2 bertin
*
8 233 bertin
*       This file part of:      AstrOmatic software
9 2 bertin
*
10 233 bertin
*       Copyright:              (C) 1993,1998-2010 IAP/CNRS/UPMC
11
*                               (C) 1994,1997 ESO
12
*                               (C) 1995,1996 Sterrewacht Leiden
13 2 bertin
*
14 233 bertin
*       Author:                 Emmanuel Bertin (IAP)
15
*
16
*       License:                GNU General Public License
17
*
18
*       AstrOmatic software is free software: you can redistribute it and/or
19
*       modify it under the terms of the GNU General Public License as
20
*       published by the Free Software Foundation, either version 3 of the
21
*       License, or (at your option) any later version.
22
*       AstrOmatic software is distributed in the hope that it will be useful,
23
*       but WITHOUT ANY WARRANTY; without even the implied warranty of
24
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
*       GNU General Public License for more details.
26
*       You should have received a copy of the GNU General Public License
27
*       along with AstrOmatic software.
28
*       If not, see <http://www.gnu.org/licenses/>.
29
*
30
*       Last modified:          09/10/2010
31
*
32
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
33 2 bertin
 
34
/*--------------------------------- constants -------------------------------*/
35
 
36
#define         FIND_STRICT     0
37
#define         FIND_NOSTRICT   1
38
 
39
/*--------------------------- structure definitions -------------------------*/
40
/* Preference keyword */
41
typedef struct
42
  {
43
  char          name[32];
44
  enum  {P_FLOAT, P_INT, P_STRING, P_BOOL, P_KEY, P_INTLIST, P_FLOATLIST,
45
        P_BOOLLIST, P_KEYLIST, P_STRINGLIST} type;
46
  void          *ptr;                   /* Pointer to the keyword value */
47
  int           imin, imax;             /* Range for int's */
48
  double        dmin, dmax;             /* Range for doubles */
49
  char          keylist[32][32];        /* List of keywords */
50
  int           nlistmin;               /* Minimum number of list members */
51
  int           nlistmax;               /* Maximum number of list members */
52
  int           *nlistptr;              /* Ptr to store the nb of read params*/
53
  int           flag;
54
  }     pkeystruct;
55
 
56
/*---------------------------------- protos --------------------------------*/
57
 
58
int     findkeys(char *str, char key[][32], int mode);
59