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

#include <cartotype_map_data.h>

List of all members.

Public Member Functions

 TMapDataCondition (const CMapAttributeTest &aTest, int32 aAttributeIndex, int32 aStyleIndex)
CT_IMPORT bool Matches (const CMapObject &aObject) const
CT_IMPORT bool Matches (TMapAttribute aAttrib) const
int32 StyleIndex () const
int32 NestingLevel () const
int32 HighestFirstAttributeValue () const

Static Public Member Functions

static CT_IMPORT CArray
< TMapDataCondition > * 
NewArray (TResult &aError, const CMapDataLayer &aLayer, const CPointerArray< CLayerCondition > &aCondition)

Detailed Description

A condition relative to a given map layer; the attribute index matches the index in the CMapDataLayer object.


Member Function Documentation

int32 CartoType::TMapDataCondition::HighestFirstAttributeValue ( ) const [inline]

Return the highest first attribute value allowed by a condition. This is used to optimise searches.

CT_EXPORT CArray< TMapDataCondition > * TMapDataCondition::NewArray ( TResult aError,
const CMapDataLayer aLayer,
const CPointerArray< CLayerCondition > &  aCondition 
) [static]

Create an array of conditions relative to a given map layer from the conditions if any in aCondition.


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