CartoType API
Public Types | Public Member Functions | Static Public Member Functions
CartoType::CShpLayer Class Reference

#include <cartotype_shp_layer.h>

Inheritance diagram for CartoType::CShpLayer:
CartoType::CMapDataLayer

List of all members.

Public Types

enum  { ELabelFieldIndex, ERoadTypeFieldIndex, EFields }
enum  {
  ENullShape = 0, EPoint = 1, EPolyLine = 3, EPolygon = 5,
  EMultiPoint = 8
}

Public Member Functions

TResult Construct ()
const TRectExtent () const
TResult First ()
TResult ReadObjectInfo (uint32 &aRecordNumber, int32 &aObjectType, TRect &aExtent, int32 &aLength)
CMapObjectReadMapObject (TResult &aError, uint32 aRecordNumber, int32 aObjectType)
TResult SkipObject (int32 aLength)
TResult AddFieldSpec (CDbfFieldSpec *aFieldSpec)
TResult AddRoadTypeFieldSpec (CDbfFieldSpec *aFieldSpec)
int32 RoadTypeFieldSpecs () const
TResult AddLabelFieldSpec (CDbfFieldSpec *aFieldSpec)
TResult AddStringFieldSpec (CDbfFieldSpec *aFieldSpec)

Static Public Member Functions

static CShpLayerNew (TResult &aError, const MString &aPath, const MString &aFilename, TPointFormat aSourcePointFormat, TPointFormat aDestPointFormat, bool aMappedObjectsOnly, int32 aCodePage)

Detailed Description

Class that represents the data of a particular layer.


Member Enumeration Documentation

anonymous enum

Indexes into the field spec array.

anonymous enum

Object types used in the SHP file.


Member Function Documentation

TResult CShpLayer::Construct ( )

Complete the construction of a CShpLayer object by reading the layer file header and finding the desired fields in the DBF file.

TResult CShpLayer::First ( )

Move to the start of the layer data.

CShpLayer * CShpLayer::New ( TResult aError,
const MString aPath,
const MString aFilename,
TPointFormat  aSourcePointFormat,
TPointFormat  aDestPointFormat,
bool  aMappedObjectsOnly,
int32  aCodePage 
) [static]

Create a new layer, given the path and file name of the layer file, and the point format.

CMapObject * CShpLayer::ReadMapObject ( TResult aError,
uint32  aRecordNumber,
int32  aObjectType 
)

Construct and read map object.

TResult CShpLayer::ReadObjectInfo ( uint32 &  aRecordNumber,
int32 &  aObjectType,
TRect aExtent,
int32 &  aLength 
)

Read object information from shp file. This information will be used to determine if the object must be constructed, and to construct it if necessary.

TResult CShpLayer::SkipObject ( int32  aLength)

Skip remainder of current object data.


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