root/tags/rel-5-0-2/mapserver/epplib.h

Revision 4, 1.3 kB (checked in by sdlime, 8 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /* Header for module epplib */
2
3 void swap2(short *x,int count);
4 void swap4(long *x,int count);
5 void swap8(double *x,int count);
6
7 typedef unsigned short epplev;
8 typedef epplev *rowptr;
9
10 typedef unsigned char file_buffer[4354];
11
12 typedef struct eppfile {
13   short fr, lr, fc, lc;   /*header starts here*/
14   double fry, lry, fcx, lcx;
15   unsigned short kind, base, scale, offsite;
16   double sfactor;
17   long access_ptr;
18   unsigned short minval, maxval;   /*could reuse if needed at a future date*/
19   char area_unit;
20   char coord_sys;
21   short reserved[3];
22   char edate[16];
23   char etime[8];
24   char comment[32];   /*header ends after this*/
25   short lastbyte, row_cnt;
26   unsigned char *fp;
27   unsigned short *access_table, *saved;
28   rowptr rptr;
29   FILE *fil;
30   char filname[80];
31   unsigned char *fptr;
32 } eppfile;
33
34 char eppreset(eppfile *EPP);
35 char get_row(eppfile *EPP);
36 char position(eppfile *EPP,int row);
37 char eppclose(eppfile *EPP);
38
39 typedef struct TRGB {
40   unsigned char red, green, blue;
41 } TRGB;
42
43 typedef struct clrTag {
44   epplev eppval;
45   TRGB color;
46 } clrTag;
47
48 typedef struct clrfile {
49   clrTag *clrTbl;
50   epplev lastColor;   /*clrTBL[lastColor-1] is last entry*/
51   FILE *fil;
52   char filname[80];
53 } clrfile;
54    
55 char clrreset(clrfile *CLR);
56 void clrget(clrfile *CLR,epplev n,TRGB *color);
57 char clrclose(clrfile *CLR);
Note: See TracBrowser for help on using the browser.