CartoType API
Public Member Functions | Static Public Member Functions
CartoType::CDbfFieldSpec Class Reference

#include <cartotype_shp_layer.h>

List of all members.

Public Member Functions

TResult AddMapping (const TAttribMapping &aMapping)
void SetOffsetAndLength (int32 aOffset, int32 aLength)
const MStringAttribName () const
int32 Offset () const
int32 Length () const
const MStringFileName () const
const MStringFieldName () const
int32 Mappings () const
const TAttribMappingMapping (int32 aIndex) const
const TMapAttributeDefault () const
bool IsCFCC () const
bool IsSet () const
bool IsStringAttrib () const

Static Public Member Functions

static CDbfFieldSpecNew (TResult &aError, const MString &aFileName, const MString &aFieldName, const MString &aAttribName, bool aIsStringAttrib)
static CDbfFieldSpecNew (TResult &aError, const MString &aFileName, const MString &aFieldName, const MString &aAttribName, const TMapAttribute &aDefault)

Detailed Description

A specification of a DBF field and how it corresponds to a standard map object attribute.


Member Function Documentation

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.


The documentation for this class was generated from the following files: