 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
Go to the documentation of this file. 1 #ifndef SDK_ECDIS_NMEA_PARSER_ROUTE_DATA_INTERFACE_H_
11 #define SDK_ECDIS_NMEA_PARSER_ROUTE_DATA_INTERFACE_H_
17 #include <base/inc/forward_declarations.h>
22 SDK_ECDISLAYER_BEGIN_NAMESPACE
64 template<
typename T >
70 SDK_NAMESPACE::ScopedAny value;
74 if (ANY_IS_EMPTY(&value) || ANY_IS_NULL(&value))
106 const SDKUInt32& idx) const throw() = 0;
116 template< typename T >
122 SDK_NAMESPACE::ScopedAny value;
126 if (ANY_IS_EMPTY(&value) || ANY_IS_NULL(&value))
135 template<
typename T >
141 SDK_NAMESPACE::ScopedAny value;
145 if (ANY_IS_EMPTY(&value) || ANY_IS_NULL(&value))
154 SDK_IMPLEMENT_IID(IRouteData)
155 SDK_END_INTERFACE(IRouteData)
157 SDK_DECLARE_IID(IRouteData)
161 SDK_ECDISLAYER_END_NAMESPACE
163 #endif // SDK_ECDIS_NMEA_PARSER_ROUTE_DATA_INTERFACE_H_
@ kRouteDataFieldID_Name
Route name.
Definition: route_data_interface.h:46
A list of SDK error/return results.
virtual SDKResult SDK_CALLTYPE SetWaypointFieldValue(const SDKUInt32 &idx, const WaypointDataFieldID &id, const SDKAny &value)=0
Sets new value for Waypoint data field.
WaypointDataFieldID
List of available waypoint data field IDs.
Definition: route_data_interface.h:31
@ kWaypointDataFieldID_Name
Waypoint name.
Definition: route_data_interface.h:34
@ kRouteDataFieldID_CompleteRoute
Complete route flag.
Definition: route_data_interface.h:48
@ Ok
Operation completed successfully.
Definition: sdk_results_enum.h:22
Single route data.
Definition: route_data_interface.h:90
The ecdislayer constants.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
@ Err_InvalidArg
Wrong argument passed to function.
Definition: sdk_results_enum.h:27
virtual SDKResult SDK_CALLTYPE SetRouteFieldValue(const RouteDataFieldID &id, const SDKAny &value)=0
Sets new value for Route data field.
@ Err_UnknownError
Unknown error.
Definition: sdk_results_enum.h:52
Common base SDK interfaces.
#define SDK_FAILED(res)
Checks failed result.
Definition: sdk_results_enum.h:69
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
@ Err_NotExist
Not exist.
Definition: sdk_results_enum.h:26
Single route waypoint data.
Definition: route_data_interface.h:53
virtual SDKResult SDK_CALLTYPE GetRouteFieldValue(const RouteDataFieldID &id, SDKAny &value) const =0
Returns appropriate Route data field value, if exists.
RouteDataFieldID
List of available route data field IDs.
Definition: route_data_interface.h:43
@ kWaypointDataFieldID_Lat
Waypoint latitude.
Definition: route_data_interface.h:36
virtual SDKResult SDK_CALLTYPE GetWaypointFieldValue(const WaypointDataFieldID &id, SDKAny &value) const =0
Returns appropriate Waypoint data field value, if exists.
@ kWaypointDataFieldID_Lon
Waypoint longitude.
Definition: route_data_interface.h:38
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
virtual SDKResult SDK_CALLTYPE SetWaypointFieldValue(const WaypointDataFieldID &id, const SDKAny &value)=0
Sets new value for Waypoint data field.
virtual IWaypointDataSP SDK_CALLTYPE GetWaypoint(const SDKUInt32 &idx) const =0
Returns appropriate Waypoint value, if exists.
virtual SDKResult SDK_CALLTYPE GetWaypointFieldValue(const SDKUInt32 &idx, const WaypointDataFieldID &id, SDKAny &value) const =0
Returns appropriate Waypoint data field value, if exists.
virtual SDKUInt32 SDK_CALLTYPE GetWaypointsCount() const =0
Returns appropriate number of waypoints.
Wrappers for work with SDKAny instance.