 |
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_SQL_INTERFACE_H_
11 #define SDK_BASE_SQL_INTERFACE_H_
32 const SDKString& connection_string)
throw() = 0;
48 virtual SDKResult SDK_CALLTYPE
Rows(SDKUInt64& rows)
throw() = 0;
50 virtual SDKResult SDK_CALLTYPE
Move(SDKUInt64 row)
throw() = 0;
58 SDKAny& value) const throw() = 0;
62 SDKAny& value) const throw() = 0;
65 SDKResult GetValueT(SDKUInt32 col, T& out_value) throw() {
66 SDK_NAMESPACE::ScopedAny value;
70 return value.GetAs< T >(out_value) ?
74 SDK_IMPLEMENT_IID(IRowSet)
75 SDK_END_INTERFACE(IRowSet)
77 SDK_DECLARE_IID(IRowSet)
82 #endif // SDK_BASE_SQL_INTERFACE_H_
virtual SDKResult SDK_CALLTYPE Open(const SDKString &connection_string)=0
Opens connection.
virtual SDKResult SDK_CALLTYPE MoveNext()=0
Moves the cursor down one row from its current position.
Interfaces wrapper with reference count control.
Provides method for fetching rows sequentially, getting data from those rows and managing rows.
Definition: sql_interface.h:45
virtual SDKResult SDK_CALLTYPE MoveFirst()=0
Moves the cursor to the first in the RowSet.
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
virtual SDKResult SDK_CALLTYPE GetValueByColumnName(const char *col, SDKAny &value) const =0
Gets the value of the designated column in the current row of this RowSet object as an Any.
virtual SDKResult SDK_CALLTYPE Rows(SDKUInt64 &rows)=0
Returns number of rows in the row set.
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 Close()=0
Closes connection.
Interface associated with the SQL database connection object.
Definition: sql_interface.h:28
static const SDKResult kSDKResult_InvalidArgument
Wrong argument passed to function.
Definition: sdk_results.h:55
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
virtual SDKResult SDK_CALLTYPE Move(SDKUInt64 row)=0
Moves the cursor to the given row number.
Wrappers for work with SDKAny instance.
virtual SDKResult SDK_CALLTYPE GetValue(SDKUInt32 col, SDKAny &value) const =0
Gets the value of the designated column in the current row of this RowSet object as an Any.