OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
pml_iop_config.h
Go to the documentation of this file.
1 #ifndef tjsm_pml_iop_config
2 #define tjsm_pml_iop_config
3 #include<stdio.h>
4 #include<stdlib.h>
5 #include<string.h>
6 #include<ctype.h>
7 
8 #define DEFAULT_CFG "pml.cfg"
9 #define MAX_LINE 180
10 #define MAX_TOK 20
11 #define MAX_ENTRY 80
12 #define MAX_TAB 100
13 #define MAX_ARR 20
14 
15 extern int tab_size;
16 
17 /* Structures for holding the configuration data */
18 struct tab_atom {
19  char token[MAX_TOK];
21 };
22 extern struct tab_atom cfg_tab[MAX_TAB];
23 
24 /* Function declarations */
25 void loadconfig(char *fname);
26 char *get_cfg_s(char *tok, char *fname);
27 int get_cfg_i(char *tok, char *fname);
28 float get_cfg_f(char *tok, char *fname);
29 float *get_cfg_array(char *tok, char *fname);
30 #endif
void loadconfig(char *fname)
#define MAX_ENTRY
float * get_cfg_array(char *tok, char *fname)
struct tab_atom cfg_tab[MAX_TAB]
#define MAX_TOK
int tab_size
#define MAX_TAB
char token[MAX_TOK]
int get_cfg_i(char *tok, char *fname)
char entry[MAX_ENTRY]
char * get_cfg_s(char *tok, char *fname)
float get_cfg_f(char *tok, char *fname)