netcdf-c/oc2/ocrc.h
Dennis Heimbigner 9979a2fa60 Synch with oc2.0
2013-06-26 21:46:54 +00:00

34 lines
702 B
C

/*
* rc.h
*
* Created on: Mar 5, 2009
* Author: rikki
*/
#ifndef RC_H_
#define RC_H_
/* Max .dodsrc line size */
#define MAXRCLINESIZE 2048
/* Max number of triples in a .dodsrc */
#define MAXRCLINES 2048
/* Create a triple store for (url,key,value) and sorted by url */
/* Actual triple store */
extern struct OCTriplestore {
int ntriples;
struct OCTriple {
char url[MAXRCLINESIZE];
char key[MAXRCLINESIZE];
char value[MAXRCLINESIZE];
} triples[MAXRCLINES];
} *ocdodsrc;
extern int ocdodsrc_read(char* basename,char *in_file_name);
extern int ocdodsrc_process(OCstate* state);
extern char* ocdodsrc_lookup(char* key, char* url);
#endif /* RC_H_ */