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


Public Member Functions | |
| RouteBookmarks (RouteBookmarks &&routeBookmark)=default | |
| Default move constructor noexcept is deduced. | |
| RouteBookmarks & | operator= (RouteBookmarks &&routeBookmark)=default |
| Default move assignment noexcept is deduced. | |
| String | getFilePath () const noexcept |
| Get Bookmarks collection path. | |
| void | setSortOrder (ERouteBookmarksSortOrder order) noexcept |
| Change the sort order of the routes. | |
| int | size () const noexcept |
| Get number of routes. | |
| const StringRef | getName (int index) const noexcept |
| Get name of the route specified by index. | |
| const RoutePreferencesRef | getPreferences (int index) const noexcept |
| Get preferences of the route specified by index. | |
| const LandmarkListRef | getWaypoints (int index) const noexcept |
| Get waypoints of the route specified by index. | |
| const TimeRef | getTimestamp (int index) const noexcept |
| Get timestamp of the route specified by index. | |
| RouteBookmarks & | update (int index, const String &name=String(), const LandmarkList &waypoints=LandmarkList(), const RoutePreferences &preferences=RoutePreferences()) noexcept |
| Update a route. | |
| RouteBookmarks & | add (const String &name, const LandmarkList &waypoints, const RoutePreferences &preferences=RoutePreferences(), bool overwrite=false) noexcept |
| Add a new route / update existing. | |
| int | addTrips (const String &filename, bool skipDuplicates=true) noexcept |
| Add trips from the given filename. | |
| RouteBookmarks & | remove (int index) noexcept |
| Remove the item at the specified index. | |
| int | find (const String &name) noexcept |
| Find a trip by name. | |
| void | clear () noexcept |
| Clear all routes bookmarks. | |
| int | exportToFile (int index, const String &path) const noexcept |
| Export the route to the given file. | |
| template<typename TCollector> | |
| bool | iterateRoutes (TCollector collector) const noexcept |
| Iterate all bookmarked routes. | |
| RouteBookmarks & | setAutoDeleteMode (bool mode) noexcept |
| Set auto delete mode. | |
| bool | getAutoDeleteMode () const noexcept |
| Get auto delete mode. | |
Static Public Member Functions | |
| static StrongPointer< RouteBookmarks > | produce (const String &name, const String &folder=String()) |
| Constructor. | |
| static String | getBaseUniqueName (const LandmarkList &lmks) |
| Create a basic route unique name based on waypoints coordinates. | |
| static int | setWaypointTrackData (Landmark &lmk, const Path &track) noexcept |
| Add the given track to waypoint. | |
| static Path | getWaypointTrackData (const Landmark &lmk) noexcept |
| Extract track from the given waypoint. | |
| static bool | waypointHasTrackData (const Landmark &lmk) noexcept |
| Check if waypoint has track data. | |
| static int | reverseWaypointTrackData (Landmark &lmk) noexcept |
| Reverse waypoint track data. | |
| static int | setWaypointTrackDepartureAndDestination (Landmark &lmk, const Coordinates &dep, const Coordinates &dst) noexcept |
| Truncate track data between the given departure and destination coordinates. | |
RouteBookmarks object.
Implements share-read / write Api object over IRouteBookmarks.
|
default |
Default move constructor noexcept is deduced.
| [in] | routeBookmark | The RouteBookmarks object to be moved. |
|
inlinenoexcept |
Add a new route / update existing.
| [in] | name | The new route name, must be unique. If a route with this name already exists, error::KExist is returned |
| [in] | waypoints | Route waypoints list |
| [in] | preferences | Route preferences |
| [in] | overwrite | Overwrite route if name already exists |
If a route with given name already exists and overwrite = true, the existing route is updated
Only route relevant preferences are saved: transport mode + avoid preferences
|
inlinenoexcept |
Add trips from the given filename.
| [in] | filename | The imported bookmarks file path |
| [in] | skipDuplicates | Whether or not to skip duplicates, Default true. |
|
inlinenoexcept |
Export the route to the given file.
| [in] | index | The route index to be exported |
| [in] | path | The file path where the route will be exported |
|
inlinenoexcept |
Find a trip by name.
| [in] | name | The route name |
|
inlinenoexcept |
Get auto delete mode.
If auto delete mode is true, the database if automatically deleted when object is destroyed
Default is false
|
inlinestatic |
Create a basic route unique name based on waypoints coordinates.
| [in] | lmks | The landmark names |
|
inlinenoexcept |
Get Bookmarks collection path.
|
inlinenoexcept |
Get name of the route specified by index.
Route name is the unique identifier of a route
| [in] | index | The index of the route in the current sort order |
|
inlinenoexcept |
Get preferences of the route specified by index.
| [in] | index | The index of the route in the current sorting |
|
inlinenoexcept |
Get timestamp of the route specified by index.
| [in] | index | The index of the route in the current sort order |
|
inlinenoexcept |
Get waypoints of the route specified by index.
| [in] | index | The index of the route in the current sort order |
Extract track from the given waypoint.
| [in] | lmk | The landmark waypoint |
|
inlinenoexcept |
Iterate all bookmarked routes.
Collector signature should be bool( const String&, const LandmarkList&, const RoutePreferences&, const Time& )
Collector should return true if iteration should continue and false if iteration should stop
| [in] | collector | The collector function |
|
default |
Default move assignment noexcept is deduced.
| [in] | routeBookmark | The RouteBookmarks object to be moved. |
|
inlinestatic |
Constructor.
| [in] | name | Collection name |
| [in] | folder | Collection folder location. If not provided a default SDK location will be used |
|
inlinenoexcept |
Remove the item at the specified index.
| [in] | index | The route index to be removed |
|
inlinestaticnoexcept |
Reverse waypoint track data.
| [in,out] | lmk | The landmark waypoint where track data is reversed |
|
inlinenoexcept |
|
inlinenoexcept |
Change the sort order of the routes.
Default order is ESortByDate. UI needs to refresh the list.
| [in] | order | The new sort order |
|
inlinestaticnoexcept |
Add the given track to waypoint.
| [in,out] | lmk | The landmark waypoint |
| [in] | track | The track as a path object |
|
inlinestaticnoexcept |
Truncate track data between the given departure and destination coordinates.
Set dep = dest to create a track circuit
| [in,out] | lmk | The landmark waypoint where track data is reversed |
| [in] | dep | The new track departure coordinate |
| [in] | dst | The new track destination coordinate |
|
inlinenoexcept |
Get number of routes.
|
inlinenoexcept |
Update a route.
| [in] | index | The index of the route in the current sort order |
| [in] | name | The new route name, must be unique. If a route with this name already exists, error::KExist is returned |
| [in] | waypoints | Route waypoints list |
| [in] | preferences | Route preferences |
Only route relevant preferences are saved: transport mode + avoid preferences
|
inlinestaticnoexcept |
Check if waypoint has track data.
| [in] | lmk | The landmark waypoint |