NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
ownship_device_config_interface.h
Go to the documentation of this file.
1 
9 #ifndef SDK_ECDISLAYER_OWNSHIP_DEVICE_CONFIG_INTERFACE_H_
10 #define SDK_ECDISLAYER_OWNSHIP_DEVICE_CONFIG_INTERFACE_H_
11 #pragma once
12 
13 #include <base/inc/platform.h>
14 #include <base/inc/base_types.h>
19 
20 SDK_VESSELS_BEGIN_NAMESPACE
21 
23 //
24 // Bow
25 // __ _________
26 // / \
27 // / \
28 // | | A
29 // | |
30 // Port | CS | Starboard
31 // | + --------------
32 // | | |
33 // | | | B
34 // |_ |______|
35 // | Stern
36 // C | D
37 //
38 // +Y Bow
39 // |_ __
40 // /| \
41 // / | + \
42 // | | Dev |
43 // | | |
44 // Port | | CS | Starboard
45 // -X ---------- + ----------- +X
46 // | | |
47 // | | |
48 // |_ |______|
49 // | Stern
50 // -Y
51 
52 typedef enum OwnShipDeviceConfig {
55  kOwnShipDeviceConfig_FirstValue = 0,
56 
57  kOwnShipDeviceConfig_CS = kOwnShipDeviceConfig_FirstValue,
79 
83 
84  kOwnShipDeviceConfig_LastValue,
86 
89 typedef enum OwnShipDeviceError {
93 
97 public:
104  virtual SDKResult SDK_CALLTYPE GetDevicePosition(
105  SDKUInt32 device, double& x, double& y) const throw() = 0;
106 
113  virtual SDKResult SDK_CALLTYPE SetDevicePosition(
114  SDKUInt32 device, double x, double y) throw() = 0;
115 
122  virtual SDKResult SDK_CALLTYPE GetDeviceGeoPosition(
123  SDKUInt32 device, double& x, double& y) const throw() = 0;
124 
130  virtual SDKResult SDK_CALLTYPE GetDeviceZ(
131  SDKUInt32 device, double& z) const throw() = 0;
132 
138  virtual SDKResult SDK_CALLTYPE SetDeviceZ(
139  SDKUInt32 device, double z) throw() = 0;
140 
147  virtual SDKResult SDK_CALLTYPE GetDeviceError(
148  SDKUInt32 device,
149  SDKUInt32 error_type,
150  double& error_val) const throw() = 0;
151 
158  virtual SDKResult SDK_CALLTYPE SetDeviceError(
159  SDKUInt32 device,
160  SDKUInt32 error_type,
161  double error_val) throw() = 0;
162 
170  virtual SDKResult SDK_CALLTYPE GetDeviceName(
171  SDKUInt32 device,
172  SDKString* name,
173  SDKString* browse_name) const throw() = 0;
174 
175  SDK_IMPLEMENT_IID(IOwnShipDeviceConfig)
176  SDK_END_INTERFACE(IOwnShipDeviceConfig)
177 };
178 SDK_DECLARE_IID(IOwnShipDeviceConfig)
179 
180 SDK_VESSELS_END_NAMESPACE
181 
182 #endif // SDK_ECDISLAYER_OWNSHIP_DEVICE_CONFIG_INTERFACE_H_
kOwnShipDeviceConfig_POS3
@ kOwnShipDeviceConfig_POS3
position sensor 3
Definition: ownship_device_config_interface.h:63
ownship_const.h
Defines constants for Own Ship.
kOwnShipDeviceConfig_LastPosDevice
@ kOwnShipDeviceConfig_LastPosDevice
Last position sensor.
Definition: ownship_device_config_interface.h:65
base_types.h
SDK base types.
IOwnShipDeviceConfig::GetDevicePosition
virtual SDKResult SDK_CALLTYPE GetDevicePosition(SDKUInt32 device, double &x, double &y) const =0
Returns relative position of the specified device in meters.
vessels_const.h
Defines Vessels constants.
kOwnShipDeviceConfig_ECHO
@ kOwnShipDeviceConfig_ECHO
echo sounder
Definition: ownship_device_config_interface.h:78
kOwnShipDeviceConfig_CS
@ kOwnShipDeviceConfig_CS
Conning station.
Definition: ownship_device_config_interface.h:57
kOwnShipDeviceConfig_LastRadar
@ kOwnShipDeviceConfig_LastRadar
Last radar.
Definition: ownship_device_config_interface.h:70
kOwnShipDeviceConfig_POS2
@ kOwnShipDeviceConfig_POS2
position sensor 2
Definition: ownship_device_config_interface.h:62
kOwnShipDeviceConfig_RADAR1
@ kOwnShipDeviceConfig_RADAR1
radar 1
Definition: ownship_device_config_interface.h:67
kOwnShipDeviceConfig_SONAR3
@ kOwnShipDeviceConfig_SONAR3
sonar 3
Definition: ownship_device_config_interface.h:74
kOwnShipDeviceConfig_SONAR1
@ kOwnShipDeviceConfig_SONAR1
sonar 1
Definition: ownship_device_config_interface.h:72
kOwnShipDeviceConfig_POS1
@ kOwnShipDeviceConfig_POS1
position sensor 1
Definition: ownship_device_config_interface.h:61
kOwnShipDeviceConfig_ANCHOR1
@ kOwnShipDeviceConfig_ANCHOR1
anchor 1
Definition: ownship_device_config_interface.h:81
kOwnShipDeviceConfig_SONAR2
@ kOwnShipDeviceConfig_SONAR2
sonar 2
Definition: ownship_device_config_interface.h:73
properties_interface.h
Object generic properties interface.
OwnShipDeviceConfig
OwnShipDeviceConfig
Own ship device configuration.
Definition: ownship_device_config_interface.h:54
kOwnShipDeviceConfig_POS_SECONDARY
@ kOwnShipDeviceConfig_POS_SECONDARY
secondary position sensor
Definition: ownship_device_config_interface.h:59
kOwnShipDeviceConfig_RADAR3
@ kOwnShipDeviceConfig_RADAR3
radar 3
Definition: ownship_device_config_interface.h:69
kOwnShipDeviceConfig_BEARING_STARBOARD
@ kOwnShipDeviceConfig_BEARING_STARBOARD
starboard bearing device
Definition: ownship_device_config_interface.h:77
OwnShipDeviceError
OwnShipDeviceError
Own ship device error.
Definition: ownship_device_config_interface.h:89
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
kOwnShipDeviceError_Distance
@ kOwnShipDeviceError_Distance
Distance error.
Definition: ownship_device_config_interface.h:91
IOwnShipDeviceConfig
Manages the own ship configuration properties.
Definition: ownship_device_config_interface.h:96
IOwnShipDeviceConfig::GetDeviceZ
virtual SDKResult SDK_CALLTYPE GetDeviceZ(SDKUInt32 device, double &z) const =0
Returns Z coordinate of the specified device in meters.
sdk_component_interface.h
Common base SDK interfaces.
kOwnShipDeviceConfig_FirstAnchor
@ kOwnShipDeviceConfig_FirstAnchor
First anchor.
Definition: ownship_device_config_interface.h:80
IOwnShipDeviceConfig::SetDevicePosition
virtual SDKResult SDK_CALLTYPE SetDevicePosition(SDKUInt32 device, double x, double y)=0
Sets relative position of the specified device in meters.
platform.h
Describes the platform constants.
kOwnShipDeviceConfig_FirstPosDevice
@ kOwnShipDeviceConfig_FirstPosDevice
First position sensor.
Definition: ownship_device_config_interface.h:60
kOwnShipDeviceConfig_LastAnchor
@ kOwnShipDeviceConfig_LastAnchor
Last anchor.
Definition: ownship_device_config_interface.h:82
ISDKComponent
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
IOwnShipDeviceConfig::SetDeviceError
virtual SDKResult SDK_CALLTYPE SetDeviceError(SDKUInt32 device, SDKUInt32 error_type, double error_val)=0
Sets device error.
IOwnShipDeviceConfig::GetDeviceError
virtual SDKResult SDK_CALLTYPE GetDeviceError(SDKUInt32 device, SDKUInt32 error_type, double &error_val) const =0
Returns device error.
kOwnShipDeviceConfig_POS4
@ kOwnShipDeviceConfig_POS4
position sensor 4
Definition: ownship_device_config_interface.h:64
kOwnShipDeviceConfig_RADAR2
@ kOwnShipDeviceConfig_RADAR2
radar 2
Definition: ownship_device_config_interface.h:68
kOwnShipDeviceConfig_POS_PRIMARY
@ kOwnShipDeviceConfig_POS_PRIMARY
primary position sensor
Definition: ownship_device_config_interface.h:58
IOwnShipDeviceConfig::SetDeviceZ
virtual SDKResult SDK_CALLTYPE SetDeviceZ(SDKUInt32 device, double z)=0
Sets Z coordinate of the specified device in meters.
kOwnShipDeviceConfig_FirstRadar
@ kOwnShipDeviceConfig_FirstRadar
First radar.
Definition: ownship_device_config_interface.h:66
IOwnShipDeviceConfig::GetDeviceGeoPosition
virtual SDKResult SDK_CALLTYPE GetDeviceGeoPosition(SDKUInt32 device, double &x, double &y) const =0
Returns geographic position of the specified device.
kOwnShipDeviceError_Angle
@ kOwnShipDeviceError_Angle
Angle error.
Definition: ownship_device_config_interface.h:90
kOwnShipDeviceConfig_BEARING_PORT
@ kOwnShipDeviceConfig_BEARING_PORT
port bearing device (direction finder)
Definition: ownship_device_config_interface.h:76
kOwnShipDeviceConfig_LastSonar
@ kOwnShipDeviceConfig_LastSonar
Last sonar.
Definition: ownship_device_config_interface.h:75
FWD_DECL_INTERFACE
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
IOwnShipDeviceConfig::GetDeviceName
virtual SDKResult SDK_CALLTYPE GetDeviceName(SDKUInt32 device, SDKString *name, SDKString *browse_name) const =0
Returns device browse name.
kOwnShipDeviceConfig_FirstSonar
@ kOwnShipDeviceConfig_FirstSonar
First sonar.
Definition: ownship_device_config_interface.h:71