CartoType API
Public Member Functions
CartoType::CType1MapObject Class Reference

#include <cartotype_type1_map_object.h>

Inheritance diagram for CartoType::CType1MapObject:
CartoType::CMapObject CartoType::MPath CartoType::CType1Array CartoType::CType1MultipleLineOrPolygon CartoType::CType1SingleContourObject CartoType::CType1Point CartoType::CType1SingleLineOrPolygon

List of all members.

Public Member Functions

 CType1MapObject (const CMapDataLayer &aLayer, int32 aCompatibilityType)
int32 CompatibilityType () const
const MStringLabel () const
virtual TResult ReadData (TType1Reader &aReader)=0
TMapAttribute Attribute (int32 aIndex) const
int32 Attributes () const
void GetStringAttribute (const MString *aName, TText &aValue) const
TResult SetAttributes (TDataInputStream *aReader, int32 aAttributes, int32 aDefaultFirstAttribute)
TResult ReadStringAttributes (TDataInputStream &aReader, int32 &aBytes, CType1StringTable *aStringTable)
const int32 * AttributeValues () const
void ClearContents ()

Detailed Description

Type 1 database representation of map object.


Member Function Documentation

TMapAttribute CType1MapObject::Attribute ( int32  aIndex) const [virtual]

Return the attribute specified by aIndex.

Implements CartoType::CMapObject.

int32 CType1MapObject::Attributes ( ) const [virtual]

Return the number of attributes stored in the object.

Implements CartoType::CMapObject.

void CartoType::CType1MapObject::ClearContents ( ) [inline, virtual]

Clear the contents of a map object so that it can be re-used. Derived classes must call this base function from any overriding function.

Reimplemented from CartoType::CMapObject.

Reimplemented in CartoType::CType1Array, CartoType::CType1MultipleLineOrPolygon, and CartoType::CType1SingleContourObject.

void CType1MapObject::GetStringAttribute ( const MString aName,
TText aValue 
) const [virtual]

Get a string attribute.

If aName is null or empty return the standard name of the object. Return the empty string if no attribute called aName exists.

Reimplemented from CartoType::CMapObject.

const MString* CartoType::CType1MapObject::Label ( ) const [inline, virtual]

Return the text label or name of the object, or null if there is none.

Implements CartoType::CMapObject.

TResult CType1MapObject::ReadStringAttributes ( TDataInputStream aReader,
int32 &  aBytes,
CType1StringTable aStringTable 
)

Read string attributes from a stream. If aStringTable is non-null it is used to expand compressed attributes. Compressed attributes are stored as an equals sign followed by a series of characters; each character is an index to a compressed attribute.

TResult CType1MapObject::SetAttributes ( TDataInputStream aReader,
int32  aAttributes,
int32  aFirstAttribute 
)

Set the attributes of a Type 1 map object. If a reader is supplied, read all attributes except the first, which is supplied as aFirstAttribute, otherwise set them to default values.


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