CartoType API
Public Member Functions
CartoType::CCloudMadeMapDataContext Class Reference

#include <cartotype_cloudmade_data_context.h>

Inheritance diagram for CartoType::CCloudMadeMapDataContext:
CartoType::CMapDataContext

List of all members.

Public Member Functions

 CCloudMadeMapDataContext (CCloudMadeMapDataBase &aDataBase)
TResult OnSearch ()
CMapObjectNext (TResult &aError, CMapObject *aOldMapObject=NULL)
const CMapDataLayerLayer () const

Detailed Description

A map database context class for retrieving map objects from a database containing CloudMade vector data.


Member Function Documentation

const CMapDataLayer* CartoType::CCloudMadeMapDataContext::Layer ( ) const [inline, virtual]

Return the layer object for the current search; this gives the actual layer's name and attributes. Return NULL if no search has yet been started.

Implements CartoType::CMapDataContext.

CMapObject * CCloudMadeMapDataContext::Next ( TResult aError,
CMapObject aOldMapObject = NULL 
) [virtual]

Return the next object from the current search, optionally re-using aOldMapObject if it is supplied, or deleting it if it is not needed. The returned object must eventually be deleted by the caller. Return KErrorNotFound if there are no objects matching the search parameters. Return KErrorEndOfData if there are no more objects.

Implements CartoType::CMapDataContext.

TResult CCloudMadeMapDataContext::OnSearch ( ) [virtual]

Start a search using the parameters iParam. This function must be overridden by derived classes to set up the parameters for the search. It must either ensure that Layer returns a non-null value, or return an error.

Implements CartoType::CMapDataContext.


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