[libgfc Index] [libgfc Hierarchy] [Headers]
class for reading DBF records (tabular data). More...
#include <utils/src/gdbf.h>
This class handles the extraction of individual records out of a DBF file associated with a ArcView shape file. Each record is an array of fixed number of fields. You can also extract the value of each field in a record, as well as the name and type of a field.
[public]
construct an object out of the specified shape file's DBF file.
[public]
Given a DBF file's name, open the file and read the header info. Also setup interal variables/attributes.
[public]
return the number of records in the DBF file.
[public]
return the number of fields in each record
[public]
return the record size in the DBF file
[public]
retrieve the nth record in the file. return the pointer to the beginning of the record. the recordDeform method can be called on this pointer to interpretate individual fields.
[public]
retrieve the nth field's desription
[public]
decompose a previously retrieved record into an array of individual field values. Return the pointer to the beginning of the array. This method is deprecated.
[public]
returns the name for the ith field of records in this file.
[public]
get the type for the ith field in a record. returns a single character the meaning of which is defined as below:
'C': character 'D': Date (8 digits: YYYYMMDD) 'F': Floating point binary numeric: -. 0 1 2 3 4 5 6 7 8 9 'G': General. All OEM characters or OLE. 'L': Logical: ? Y y N n T t F f (? initially) 'M': Memo 'N': Float: - . 0 1 2 3 4 5 6 7 8 9 'I': Integer: - 0 1 2 3 4 5 6 7 8 9
[public]
get the value string for the ith field in the given record. This is an ascii representation of this field's actual value. For fields with type 'I' or 'N', Use atoi() or strtod() accordingly to convert the returned string into an integer or double. Null is returned if something is wrong (e.g., invalid field index).
Documentation generated by lqian@lqian-sun on Wed Jul 14 09:36:10 EDT 1999 | Kdoc |