 |
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_BASE_PROPERTIES_INTERFACE_H_
11 #define SDK_BASE_PROPERTIES_INTERFACE_H_
21 typedef SDKUInt32 SDKPropertyID;
27 typedef ISDKPropertiesSP SDKPropertiesSP;
28 typedef ISDKPropertiesSCP SDKPropertiesSCP;
36 const SDKAny& value)
throw() = 0;
39 SDKAny& value)
const throw() = 0;
42 inline SDKResult GetPropertyT(
const SDKPropertyID&
id,
43 T& out_value)
const noexcept {
48 return value.GetAs< T >(out_value) ?
53 inline SDKResult SetPropertyT(
const SDKPropertyID&
id, T new_value) noexcept {
68 ISDKPropertiesSP& clone)
const throw() = 0;
73 SDK_DECLARE_IID(ISDKPropertiesClone)
82 SDKAny& value)
const throw() = 0;
87 SDK_IMPLEMENT_IID(IEnumSDKProperty)
88 SDK_END_INTERFACE(IEnumSDKProperty)
90 SDK_DECLARE_IID(IEnumSDKProperty)
94 #endif // SDK_BASE_PROPERTIES_INTERFACE_H_
Interfaces wrapper with reference count control.
virtual SDKResult SDK_CALLTYPE Reset()=0
Resets the enumeration sequence to the beginning.
virtual SDKResult SDK_CALLTYPE Next(SDKPropertyID &id, SDKAny &value) const =0
Retrieves the next property id and property value in the enumeration sequence.
static const SDKResult kSDKResult_Succeeded
Operation completed successfully.
Definition: sdk_results.h:22
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
Provides access to members that control the properties.
Definition: properties_interface.h:32
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
virtual SDKResult SDK_CALLTYPE SetProperty(const SDKPropertyID &id, const SDKAny &value)=0
Sets a property value.
This class wraps the SDKAny type.
Definition: sdk_any_handler.h:32
virtual SDKResult SDK_CALLTYPE Clone(ISDKPropertiesSP &clone) const =0
Return the SDK properties clone.
virtual SDKResult SDK_CALLTYPE GetProperty(const SDKPropertyID &id, SDKAny &value) const =0
Retrieves a property value.
Return the SDK properties clone.
Definition: properties_interface.h:64
static const SDKResult kSDKResult_InvalidArgument
Wrong argument passed to function.
Definition: sdk_results.h:55
SDK return values synonyms in the sdk namespace.
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
Wrappers for work with SDKAny instance.