|
CartoType API
|
#include <cartotype_cloudmade_data_context.h>
Public Member Functions | |
| CCloudMadeMapDataContext (CCloudMadeMapDataBase &aDataBase) | |
| TResult | OnSearch () |
| CMapObject * | Next (TResult &aError, CMapObject *aOldMapObject=NULL) |
| const CMapDataLayer * | Layer () const |
A map database context class for retrieving map objects from a database containing CloudMade vector data.
| 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.
1.7.5.1