|
CartoType API
|
#include <cartotype_shp_layer.h>
Public Member Functions | |
| TDbfFile (TDataInputStream &aReader, int32 aCodePage) | |
| TResult | ReadHeader () |
| TResult | FindFields (CPointerArray< CDbfFieldSpec > &aSpec, CPointerArray< CDbfFieldSpec > &aRoadTypeSpec, CPointerArray< CDbfFieldSpec > &aLabelSpec, CPointerArray< CDbfFieldSpec > &aStringSpec) |
| TResult | ReadField (const CDbfFieldSpec &aSpec, int32 aRecordNumber, MString *aTextValue, int32 *aIntegerValue, bool &aMapped, int32 aDelimiter) |
Class representing the DBF file.
| TResult TDbfFile::FindFields | ( | CPointerArray< CDbfFieldSpec > & | aSpec, |
| CPointerArray< CDbfFieldSpec > & | aRoadTypeSpec, | ||
| CPointerArray< CDbfFieldSpec > & | aLabelSpec, | ||
| CPointerArray< CDbfFieldSpec > & | aStringSpec | ||
| ) |
Read the DBF file field specifications. If any field name matches a field name in an element of one of the arrays, store its offset and length in the element.
| TResult TDbfFile::ReadField | ( | const CDbfFieldSpec & | aSpec, |
| int32 | aRecordNumber, | ||
| MString * | aTextValue, | ||
| int32 * | aIntegerValue, | ||
| bool & | aMapped, | ||
| int32 | aDelimiter | ||
| ) |
Read a field from a DBF file. Fill in whichever of aTextValue or aIntegerValue is non-null. If aTextValue is non-null text is appended to aTextValue, preceded by aDelimiter if the text is not empty and aDelimiter is not 0.
Set aMapped to false if there are mappings and the value in the field was not mapped.
| TResult TDbfFile::ReadHeader | ( | ) |
Read header of dbf file and store the values that we need. Ignore others.
1.7.5.1