#define _DEM_H
+#ifndef __cplusplus
+# error This library requires C++
+#endif
+
+
#include <stdio.h>
#include <Bucket/bucketutils.h>
+#include <zlib/zlib.h>
#define DEM_SIZE 1200
class fgDEM {
// file pointer for input
- FILE *fd;
+ gzFile fd;
// coordinates (in arc seconds) of south west corner
double originx, originy;
public:
- // Constructor (opens a DEM file)
+ // Constructor
fgDEM( void );
// open a DEM file (use "-" if input is coming from stdin)
int parse( void );
// read and parse DEM "A" record
- void read_a_record( void );
+ int read_a_record( void );
// read and parse DEM "B" record
void read_b_record( void );
// $Log$
+// Revision 1.6 1998/06/05 18:14:40 curt
+// Abort out early when reading the "A" record if it doesn't look like
+// a proper DEM file.
+//
+// Revision 1.5 1998/04/22 13:14:46 curt
+// Fixed a bug in zlib usage.
+//
+// Revision 1.4 1998/04/21 17:03:41 curt
+// Prepairing for C++ integration.
+//
+// Revision 1.3 1998/04/18 03:53:06 curt
+// Added zlib support.
+//
// Revision 1.2 1998/04/14 02:43:28 curt
// Used "new" to auto-allocate large DEM parsing arrays in class constructor.
//