 |
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_SDK_STREAM_INTERFACE_H_
11 #define SDK_BASE_SDK_STREAM_INTERFACE_H_
24 static const wchar_t* kSDKStreamProperty_Size = L
"size";
25 static const wchar_t* kSDKStreamProperty_LastWriteTime = L
"last write time";
27 static const wchar_t* kSDKStreamProperty_ReclaimMemoryOnSetSize =
28 L
"reclaim memory on set size";
82 #endif // SDK_BASE_SDK_STREAM_INTERFACE_H_
virtual SDKResult SDK_CALLTYPE Clone(SDKStreamSP &cloned_stream)=0
Create a clone of the stream object.
Interfaces wrapper with reference count control.
@ kBegin
Seek from stream begin.
Definition: stream_interface.h:38
Generic data stream interface.
Definition: stream_interface.h:32
@ kEnd
Seek from stream end.
Definition: stream_interface.h:40
Object generic properties interface.
virtual SDKResult SDK_CALLTYPE Write(const void *buffer, const DataSize &size, DataSize *written_size)=0
Writes the requested amount of data from buffer to stream.
SDKInt64 SeekSize
Describes the seek position.
Definition: stream_interface.h:44
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
virtual SDKResult SDK_CALLTYPE Flush()=0
Writes any buffered data to the underlying device.
A smart pointer class for managing SDK components interface pointers.
Definition: sdk_ref_ptr.h:23
virtual SDKResult SDK_CALLTYPE Seek(const SeekOrigin &origin, const SeekSize &seek_size, Position *new_position)=0
Sets the current position within the stream.
virtual SDKResult SDK_CALLTYPE CopyTo(const SDKStreamSP &dest_stream, const DataSize &size, DataSize *read_size, DataSize *written_size)=0
Copies the requested amount of data from one stream to another stream.
Common base SDK interfaces.
virtual SDKResult SDK_CALLTYPE SetSize(const DataSize &new_size)=0
Sets a new size for the stream.
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
SeekOrigin
Seek origin for stream seek operations.
Definition: stream_interface.h:36
@ kCurrent
Seek from current position.
Definition: stream_interface.h:39
SDKUInt64 Position
Describes the current position.
Definition: stream_interface.h:45
SDKUInt64 DataSize
Describes the amount of data.
Definition: stream_interface.h:43
virtual SDKResult SDK_CALLTYPE Read(void *buffer, const DataSize &size, DataSize *read_size)=0
Reads the requested amount of data from stream to buffer.
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.