|
CartoType API
|
#include <cartotype_shp_layer.h>
Public Member Functions | |
| TResult | AddMapping (const TAttribMapping &aMapping) |
| void | SetOffsetAndLength (int32 aOffset, int32 aLength) |
| const MString & | AttribName () const |
| int32 | Offset () const |
| int32 | Length () const |
| const MString & | FileName () const |
| const MString & | FieldName () const |
| int32 | Mappings () const |
| const TAttribMapping & | Mapping (int32 aIndex) const |
| const TMapAttribute & | Default () const |
| bool | IsCFCC () const |
| bool | IsSet () const |
| bool | IsStringAttrib () const |
Static Public Member Functions | |
| static CDbfFieldSpec * | New (TResult &aError, const MString &aFileName, const MString &aFieldName, const MString &aAttribName, bool aIsStringAttrib) |
| static CDbfFieldSpec * | New (TResult &aError, const MString &aFileName, const MString &aFieldName, const MString &aAttribName, const TMapAttribute &aDefault) |
A specification of a DBF field and how it corresponds to a standard map object attribute.
| bool CartoType::CDbfFieldSpec::IsCFCC | ( | ) | const [inline] |
Return true if both the field name and attribute name are 'CFCC'.
| bool CartoType::CDbfFieldSpec::IsSet | ( | ) | const [inline] |
Return true if the specification has been set.
| bool CartoType::CDbfFieldSpec::IsStringAttrib | ( | ) | const [inline] |
Return true if the attribute is a string attribute, not a numeric one.
| CDbfFieldSpec * CDbfFieldSpec::New | ( | TResult & | aError, |
| const MString & | aFileName, | ||
| const MString & | aFieldName, | ||
| const MString & | aAttribName, | ||
| bool | aIsStringAttrib | ||
| ) | [static] |
Create a field spec to convert the contents of the DBF field at aOffset and aLength to the map object attribute aAttribName.
| CDbfFieldSpec * CDbfFieldSpec::New | ( | TResult & | aError, |
| const MString & | aFileName, | ||
| const MString & | aFieldName, | ||
| const MString & | aAttribName, | ||
| const TMapAttribute & | aDefault | ||
| ) | [static] |
Create a field spec to convert the contents of the DBF field at aOffset and aLength to the numeric map object attribute aAttribName, with default value aDefault.
1.7.5.1