 |
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_PARAMETERS_INTERFACE_H_
11 #define SDK_BASE_PARAMETERS_INTERFACE_H_
21 typedef SDKUInt32 SDKParameterID;
28 typedef ISDKParametersSP SDKParametersSP;
29 typedef ISDKParametersSCP SDKParametersSCP;
43 SDKAny& value)
const throw() = 0;
53 const SDKAny& value)
throw() = 0;
68 return value.GetAs< T >(out_value) ?
86 SDK_DECLARE_IID(ISDKParameters)
94 ISDKParametersSP& clone)
const throw() = 0;
96 SDK_IMPLEMENT_IID(ISDKParametersClone)
97 SDK_END_INTERFACE(ISDKParametersClone)
99 SDK_DECLARE_IID(ISDKParametersClone)
106 virtual SDKResult SDK_CALLTYPE
Count(SDKUInt32& count)
const throw() = 0;
110 SDKParameterID&
id, SDKAny& value)
const throw() = 0;
112 SDK_IMPLEMENT_IID(ISDKParametersCollection)
113 SDK_END_INTERFACE(ISDKParametersCollection)
115 SDK_DECLARE_IID(ISDKParametersCollection)
124 SDKAny& value)
const throw() = 0;
129 SDK_IMPLEMENT_IID(IEnumSDKParameter)
130 SDK_END_INTERFACE(IEnumSDKParameter)
132 SDK_DECLARE_IID(IEnumSDKParameter)
136 #endif // SDK_BASE_PARAMETERS_INTERFACE_H_
SDKResult SetParameterT(SDKParameterID id, T new_value) noexcept
Sets the value of the specified parameter.
Definition: parameters_interface.h:79
virtual SDKResult SDK_CALLTYPE Clone(ISDKParametersSP &clone) const =0
Return the SDK parameters clone.
Interfaces wrapper with reference count control.
virtual SDKResult SDK_CALLTYPE Reset()=0
Resets the enumeration sequence to the beginning.
virtual SDKResult SDK_CALLTYPE Count(SDKUInt32 &count) const =0
Retrieves the number of the parameters in the container.
virtual SDKResult SDK_CALLTYPE GetParameter(SDKParameterID id, SDKAny &value) const =0
Returns the value of the specified parameter.
static const SDKResult kSDKResult_Succeeded
Operation completed successfully.
Definition: sdk_results.h:22
SDKResult GetParameterT(SDKParameterID id, T &out_value) const noexcept
Returns the value of the specified parameter.
Definition: parameters_interface.h:63
virtual SDKResult SDK_CALLTYPE GetByIndex(SDKUInt32 idx, SDKParameterID &id, SDKAny &value) const =0
Retrieves the parameter id and parameter value by index.
Provides access to members that manage parameters of an object.
Definition: parameters_interface.h:33
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
virtual SDKResult SDK_CALLTYPE SetParameter(SDKParameterID id, const SDKAny &value)=0
Sets the value of the specified parameter.
virtual SDKResult SDK_CALLTYPE Next(SDKParameterID &id, SDKAny &value) const =0
Retrieves the next parameter id and parameter value in the enumeration sequence.
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
This class wraps the SDKAny type.
Definition: sdk_any_handler.h:32
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.