 |
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_SDK_RESULTS_ENUM_H_
11 #define SDK_SDK_RESULTS_ENUM_H_
65 #define SDK_OK(res) ((static_cast<SDKResult>(res)) == kSDKResult_Succeeded)
66 #define SDK_SUCCEEDED(res) ((static_cast<SDKResult>(res)) >= 0)
68 #define SDK_FAILED(res) ((static_cast<SDKResult>(res)) != kSDKResult_Succeeded) // ((static_cast<SDKResult>(res)) < 0)
70 #define SDK_TRUE(res) ((static_cast<SDKResult>(res)) == kSDKResult_True)
72 #define SDK_FALSE(res) ((static_cast<SDKResult>(res)) == kSDKResult_False)
74 #define SDK_ERROR(res) ((static_cast<SDKResult>(res)) & kSDKResult_Error)
78 #endif // SDK_SDK_RESULTS_ENUM_H_
@ Err_NotFound
Requested item is not found.
Definition: sdk_results_enum.h:40
@ Err_NotEnoughParameters
Not enough parameters.
Definition: sdk_results_enum.h:50
static const SDKResult kSDKResult_NotEnoughParameters
Not enough parameters.
Definition: sdk_results.h:132
static const SDKResult kSDKResult_UnexpectedError
Unexpected error occurred during operation.
Definition: sdk_results.h:46
@ Err_AlreadyExist
An object already exists.
Definition: sdk_results_enum.h:47
A list of SDK error/return results.
@ Err_NULLPointer
Null pointer passed.
Definition: sdk_results_enum.h:38
static const SDKResult kSDKResult_BadType
Something has wrong type.
Definition: sdk_results.h:100
static const SDKResult kSDKResult_AccessDenied
Generic access denied.
Definition: sdk_results.h:129
static const SDKResult kSDKResult_Stopped
Process was stopped.
Definition: sdk_results.h:40
@ Err_CompressionError
Compression error.
Definition: sdk_results_enum.h:46
static const SDKResult kSDKResult_AlreadyInitialized
Something is already initialized.
Definition: sdk_results.h:126
@ Err_EOF
End of file is reached.
Definition: sdk_results_enum.h:25
@ Err_EmptyValue
An empty value.
Definition: sdk_results_enum.h:48
@ Err_CryptError
General encryption error.
Definition: sdk_results_enum.h:45
static const SDKResult kSDKResult_NotEnoughMemory
Not enough memory for an operation.
Definition: sdk_results.h:61
static const SDKResult kSDKResult_InternalError
Internal error occurred.
Definition: sdk_results.h:52
@ Err_NotSupported
Not supported.
Definition: sdk_results_enum.h:33
static const SDKResult kSDKResult_Succeeded
Operation completed successfully.
Definition: sdk_results.h:22
@ Err_True
Operation completed successfully with true result.
Definition: sdk_results_enum.h:23
@ Err_NotApplicable
A function is not applicable for the object.
Definition: sdk_results_enum.h:37
static const SDKResult kSDKResult_CantLoadData
A data could not be loaded.
Definition: sdk_results.h:115
@ Ok
Operation completed successfully.
Definition: sdk_results_enum.h:22
@ Err_Uninitialized
Not initialized object.
Definition: sdk_results_enum.h:30
static const SDKResult kSDKResult_EmptyValue
Value is empty or absent.
Definition: sdk_results.h:34
static const SDKResult kSDKResult_NotSupported
Not supported.
Definition: sdk_results.h:67
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
static const SDKResult kSDKResult_UnknownError
Unknown error occurred during operation.
Definition: sdk_results.h:49
@ Err_InvalidArg
Wrong argument passed to function.
Definition: sdk_results_enum.h:27
@ Err_NotEnoughMemory
Not enough memory.
Definition: sdk_results_enum.h:53
static const SDKResult kSDKResult_NotOpened
Work with not opened source.
Definition: sdk_results.h:85
@ Err_NotOpened
A source is not opened.
Definition: sdk_results_enum.h:41
@ Err_Unexpected
Not implemented.
Definition: sdk_results_enum.h:29
@ Err_UnknownError
Unknown error.
Definition: sdk_results_enum.h:52
static const SDKResult kSDKResult_EOFReached
End of file is reached.
Definition: sdk_results.h:31
static const SDKResult kSDKResult_ReadOnly
Trying to open read-only for editing.
Definition: sdk_results.h:112
static const SDKResult kSDKResult_NotInitialized
Not initialized.
Definition: sdk_results.h:64
@ Err_False
Operation completed successfully with false result.
Definition: sdk_results_enum.h:24
static const SDKResult kSDKResult_NotApplicable
Used to indicate when information is not provided, either because it does not apply to a particular c...
Definition: sdk_results.h:123
@ Err_OutOfRange
A value is out of range
Definition: sdk_results_enum.h:44
@ Err_BufferTooSmall
Buffer is too small.
Definition: sdk_results_enum.h:35
@ Err_CantPerformAction
Failed to perform an action.
Definition: sdk_results_enum.h:43
static const SDKResult kSDKResult_CantPerformAction
Operation can't be performed.
Definition: sdk_results.h:73
@ Err_InternalError
Internal error.
Definition: sdk_results_enum.h:36
@ Err_Stopped
Operation stopped.
Definition: sdk_results_enum.h:51
@ Err_AccessDenied
Access denied.
Definition: sdk_results_enum.h:49
static const SDKResult kSDKResult_OutOfRange
Out of range request.
Definition: sdk_results.h:109
@ Err_ReadOnly
Read only object.
Definition: sdk_results_enum.h:42
static const SDKResult kSDKResult_NotFound
Something is not found.
Definition: sdk_results.h:76
static const SDKResult kSDKResult_CompressionError
Compression or decompression has failed.
Definition: sdk_results.h:106
@ Err_NotExist
Not exist.
Definition: sdk_results_enum.h:26
@ Err_BadType
Bad type.
Definition: sdk_results_enum.h:34
static const SDKResult kSDKResult_AlreadyExist
Something is exist already.
Definition: sdk_results.h:37
static const SDKResult kSDKResult_CryptError
Encryption or decryption has failed.
Definition: sdk_results.h:103
static const SDKResult kSDKResult_BadFormat
Something has wrong format.
Definition: sdk_results.h:97
static const SDKResult kSDKResult_NotExist
Something does not exist.
Definition: sdk_results.h:79
static const SDKResult kSDKResult_True
Operation completed successfully with true result.
Definition: sdk_results.h:25
static const SDKResult kSDKResult_NotImplemented
Not implemented.
Definition: sdk_results.h:70
@ Err_BadFormat
Bad format.
Definition: sdk_results_enum.h:32
@ Err_CantLoadData
Failed to load data.
Definition: sdk_results_enum.h:31
static const SDKResult kSDKResult_InvalidArgument
Wrong argument passed to function.
Definition: sdk_results.h:55
@ Err_AlreadyInitialized
An object is already initialized.
Definition: sdk_results_enum.h:39
static const SDKResult kSDKResult_NULLPointer
NULL pointer passed to function.
Definition: sdk_results.h:58
static const SDKResult kSDKResult_False
Operation completed successfully with false result.
Definition: sdk_results.h:28
ErrorCodes
Error codes.
Definition: sdk_results_enum.h:21
static const SDKResult kSDKResult_BufferTooSmall
Buffer too small.
Definition: sdk_results.h:118