|
Maps SDK for C++ 1.0.0
|
LandmarkStore object. More...


Public Member Functions | |
| LandmarkStore (const LandmarkStore &)=delete | |
| LandmarkStore (LandmarkStore &&store)=default | |
| Default move constructor noexcept is deduced. | |
| LandmarkStore & | operator= (const LandmarkStore &)=delete |
| LandmarkStore & | operator= (LandmarkStore &&store)=default |
| Default move assignment noexcept is deduced. | |
| int | getId () const |
| Get the ID of the landmark store. | |
| int | getType () const noexcept |
| Get the type of the landmark store. | |
| const StringRef | getName () const noexcept |
| Get the landmark store name. | |
| LandmarkStore & | addCategory (LandmarkCategory &category) noexcept |
| Add a new category to the store. | |
| LandmarkStore & | removeCategory (int categoryId, bool removeLmkContent=false) noexcept |
| Remove the specified category. | |
| LandmarkCategory | getCategoryById (int categoryId) const noexcept |
| Get the category by ID. | |
| LandmarkStore & | updateCategory (LandmarkCategory const &category) noexcept |
| Update the specified category. | |
| LandmarkCategoryList | getCategories () const noexcept |
| Get the list of all categories. | |
| LandmarkStore & | addLandmark (Landmark &landmark, int categoryId=KUncategorizedLandmarkCategId) noexcept |
| Add a landmark to the specified category in the landmark store. | |
| LandmarkCategoryList | getCategories (int landmarkId) const noexcept |
| Get the list of categories for the specified landmark. | |
| Landmark | getLandmark (int landmarkId) const noexcept |
| Get the specified landmark. | |
| LandmarkStore & | removeLandmark (int landmarkId) noexcept |
| Remove the specified landmark. | |
| LandmarkStore & | removeAllLandmarks () noexcept |
| Remove all landmarks from store. | |
| int | getLandmarkCount (int categoryId=KInvalidLandmarkCategId) const noexcept |
| Get the number of all landmarks within the specified category. | |
| LandmarkList | getLandmarks (int categoryId=KInvalidLandmarkCategId) const noexcept |
| Get the landmarks within the specified category. | |
| LandmarkList | getLandmarks (const GeographicArea &area, int categoryId=KInvalidLandmarkCategId) const noexcept |
| Get the landmarks within the specified area. | |
| StrongPointer< LandmarkBrowseSession > | createLandmarkBrowseSession (LandmarkBrowseSessionSettings settings=LandmarkBrowseSessionSettings()) noexcept |
| Create a landmarks browse session with the specified settings. | |
| LandmarkStore & | updateLandmark (Landmark &landmark) noexcept |
| Update the information about a landmark. | |
| LandmarkStore & | setLandmarkCategory (Landmark &landmark, int categoryId) noexcept |
| Set landmark category id. | |
| int | importLandmarks (const DataBuffer &data, ELandmarkFileFormat format, const Image &image, ProgressListener listener, int categoryId=KUncategorizedLandmarkCategId) noexcept |
| Async import landmarks from given buffer format. | |
| int | importLandmarks (const String &path, ELandmarkFileFormat format, const Image &image, ProgressListener listener, int categoryId=KUncategorizedLandmarkCategId) noexcept |
| Async import landmarks from given file format. | |
| void | cancelImportLandmarks () noexcept |
| Cancel async import landmarks operation. | |
| String | getFilePath () const noexcept |
| Get landmark store path. | |
| LandmarkStore & | startFastUpdateMode () noexcept |
| Start landmark store fast update mode. | |
| LandmarkStore & | stopFastUpdateMode (bool discard=false) noexcept |
| Stop landmark store fast update mode. | |
| bool | isFastUpdateMode () const noexcept |
| Get fast update mode state. | |
| Image | getImage () const noexcept |
| Get the landmark store image. | |
| int | setImage (const Image &img) noexcept |
| Set the landmark store image. | |
LandmarkStore object.
Implements share-read / write Api object over ILandmarkStore.
|
default |
Default move constructor noexcept is deduced.
| store | The object to move |
|
inlinenoexcept |
Add a new category to the store.
After this method call, the category object that is passed as a parameter belongs to this landmark store. The category must have a name.
| [in] | category | The category to be added |
|
inlinenoexcept |
Add a landmark to the specified category in the landmark store.
If the landmark already exists in the landmark store, only the category info is updated
| [in] | landmark | The landmark to be added to the landmark store in the specified category. |
| [in] | categoryId | The ID of the category where the landmark will be added. |
When the ID is KUncategorizedLandmarkCategId then the landmark will be added as uncategorized
|
inlinenoexcept |
Create a landmarks browse session with the specified settings.
| [in] | settings | The settings for the browse session |
|
inlinenoexcept |
Get the list of all categories.
|
inlinenoexcept |
Get the list of categories for the specified landmark.
| [in] | landmarkId | The landmark id |
|
inlinenoexcept |
Get the category by ID.
| [in] | categoryId | The category id |
|
inlinenoexcept |
Get landmark store path.
|
inline |
Get the ID of the landmark store.
|
inlinenoexcept |
Get the landmark store image.
|
inlinenoexcept |
Get the specified landmark.
| [in] | landmarkId | The landmark id |
|
inlinenoexcept |
Get the number of all landmarks within the specified category.
If the category ID is KUncategorizedLandmarkCategId, the uncategorized landmarks count is returned.
If the category ID is KInvalidLandmarkCategId, the total landmarks count is returned.
| [in] | categoryId | The category id |
|
inlinenoexcept |
Get the landmarks within the specified area.
| [in] | area | The geographic area queried for landmarks |
| [in] | categoryId | The category id for which landmarks are retrieved ( default KInvalidLandmarkCategId meaning all categories ) |
If the category ID is KUncategorizedLandmarkCategId, all uncategorized landmarks are retrieved.
If the category ID is KInvalidLandmarkCategId, all landmarks are retrieved.
|
inlinenoexcept |
Get the landmarks within the specified category.
| [in] | categoryId | The category id for which landmarks are retrieved ( default KInvalidLandmarkCategId meaning all categories ) |
If the category ID is KUncategorizedLandmarkCategId, all uncategorized landmarks are retrieved.
If the category ID is KInvalidLandmarkCategId, all landmarks are retrieved.
|
inlinenoexcept |
Get the landmark store name.
|
inlinenoexcept |
Get the type of the landmark store.
The result value is in range of ELandmarkStoreType
|
inlinenoexcept |
Async import landmarks from given buffer format.
| [in] | data | The data buffer |
| [in] | format | The data buffer format |
| [in] | image | The landmark map image. If left empty, a default image is assigned |
| [in] | listener | Operation progress listener |
| [in] | categoryId | The category for the new imported landmarks. The category must exist or use KUncategorizedLandmarkCategId set the landmark as uncategorized |
|
inlinenoexcept |
Async import landmarks from given file format.
| [in] | path | The file path |
| [in] | format | The file format |
| [in] | image | The landmark map image. If left empty, a default image is assigned |
| [in] | listener | Operation progress listener |
| [in] | categoryId | The category for the new imported landmarks. The category must exist or use KUncategorizedLandmarkCategId set the landmark as uncategorized |
|
inlinenoexcept |
Get fast update mode state.
|
default |
Default move assignment noexcept is deduced.
| store | The object to move |
|
inlinenoexcept |
Remove all landmarks from store.
For performance issue the function will notify via ILandmarkStoreListener::onLandmarksRemoved with an empty list
|
inlinenoexcept |
Remove the specified category.
| [in] | categoryId | The category id |
| [in] | removeLmkContent | Request to remove all landmarks belonging to the category |
If removeLmkContent = false, the landmarks belonging to the category are marked uncategorized
|
inlinenoexcept |
Remove the specified landmark.
| [in] | landmarkId | The landmark id |
|
inlinenoexcept |
Set the landmark store image.
| [in] | img | The landmark store image. |
Setting a valid landmark store image will override individual items images, see Landmark::getImage
Setting an empty landmark store image will restore individual items images, see Landmark::getImage
|
inlinenoexcept |
Set landmark category id.
| [in] | landmark | The landmark object |
| [in] | categoryId | The category id. Use KUncategorizedLandmarkCategId to set the landmark as uncategorized |
|
inlinenoexcept |
Start landmark store fast update mode.
Fast update mode - allow fast insert, delete and update operations This mode should be used with caution because if a power failure or process crash interrupts it, the database will likely be corrupted and will be deleted at next startup This is intended for fast import of external landmarks into application format
|
inlinenoexcept |
Stop landmark store fast update mode.
| [in] | discard | Discard fast update mode session changes. Default is false |
|
inlinenoexcept |
Update the specified category.
The category object must belong to this landmark store. No fields of the parameter will be updated by this call.
| [in] | category | The category to be updated |
|
inlinenoexcept |
Update the information about a landmark.
This updates only the information about a landmark and does not modify the categories the landmark belongs to. The landmark instance passed in as the parameter must be an instance that belongs to this landmark store. Calling this method updates the timestamp of the landmark.
| [in] | landmark | The landmark to be updated |