WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
ShapeFile.h
1#ifndef _WINC_SHAPEFILE
2#define _WINC_SHAPEFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/ShapeData.h>
7#include <WXP/Swap.h>
8
9namespace WXP {
10 class ShapeFile {
11 File file;
12 Swap swap;
13 int access;
14 char name[100];
15 int type;
16 bool opened;
17
18 int cnt;
19 int seg;
20 int len;
21 int npart;
22 int part;
23 int num;
24 int parts[5000];
25 int index;
26
27 public:
28 ShapeFile();
29 ShapeFile( const char *filename );
30 ShapeFile( const char *filename, int raccess );
31 ~ShapeFile();
32 bool isOpen();
33 int open( const char *filename );
34 int open( const char *filename, int raccess );
35 int close();
36 int read( ShapeData &data );
37 int write( ShapeData &data );
38
39 static int checkType( const char *filename );
40 };
41}
42#endif
This class accesses files.
Definition File.h:15
This struct stores ShapeFile data.
Definition ShapeData.h:8
This class reads in and writes shape files.
Definition ShapeFile.h:10
~ShapeFile()
Definition ShapeFile.cc:152
int close()
Definition ShapeFile.cc:136
int write(ShapeData &data)
Definition ShapeFile.cc:262
static int checkType(const char *filename)
Definition ShapeFile.cc:23
int open(const char *filename)
Definition ShapeFile.cc:64
ShapeFile()
Definition ShapeFile.cc:36
int read(ShapeData &data)
Definition ShapeFile.cc:160
This class performs byte swapping.
Definition Swap.h:7
All WXP classes fall under the WXP namespace.
Definition Angle.h:4