|
CartoType API
|
#include <cartotype_type1_map_object.h>
Public Member Functions | |
| CType1MapObject (const CMapDataLayer &aLayer, int32 aCompatibilityType) | |
| int32 | CompatibilityType () const |
| const MString * | Label () 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 () |
Type 1 database representation of map object.
| 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.
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.
1.7.5.1