MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lt_ioStreamInf.h
Go to the documentation of this file.
1//
2// This code is property of Celartem, Inc dba Extensis.
3// Copyright (c) 1995-2023. All rights reserved.
4// Use permitted only under license from Extensis.
5//
6/* PUBLIC */
7
8#ifndef LT_STREAMINF_H
9#define LT_STREAMINF_H
10
11#include "lt_lib_io.h"
12
13
14LT_BEGIN_LIZARDTECH_NAMESPACE
15
16
17
26{
27public:
28 virtual ~LTIOStreamInf() = 0;
29
34
45 virtual bool isEOF() =0;
46
53 virtual bool isOpen() =0;
54
56
57
62
76 virtual LT_STATUS open() =0;
77
88 virtual LT_STATUS close() =0;
89
91
92
97
107 virtual lt_uint32 read( lt_uint8 *pDest, lt_uint32 numBytes ) = 0;
108
117 virtual lt_uint32 write( const lt_uint8 *pSrc, lt_uint32 numBytes ) = 0;
118
120
125
138 virtual LT_STATUS seek( lt_int64 offset, LTIOSeekDir origin ) =0;
139
147 virtual lt_int64 tell() =0;
148
150
155
166
167
178 virtual LT_STATUS getLastError() const =0;
179
180
192 virtual const char* getID() const =0;
193
195
196
201 virtual char *readString(int delimiter = '\0');
202};
203
204
205
206LT_END_LIZARDTECH_NAMESPACE
207
208
209#endif // LT_STREAMINF_H
Support for the IO classes.
LTIOSeekDir
Stream seek directions.
Definition: lt_lib_io.h:26
lt_uint32 LT_STATUS
An integral status code.
Definition: lt_status.h:30
unsigned char lt_uint8
unsigned 8-bit integer
Definition: lt_types.h:36
unsigned int lt_uint32
unsigned 32-bit integer
Definition: lt_types.h:44
long long int lt_int64
signed 64-bit integer
Definition: lt_types.h:57
Abstract definition of a stream.
virtual LT_STATUS getLastError() const =0
Get status code of last error event.
virtual const char * getID() const =0
Get a URI describing the stream object.
virtual ~LTIOStreamInf()=0
virtual lt_uint32 read(lt_uint8 *pDest, lt_uint32 numBytes)=0
Retrieve the specified number of bytes from the data source and place them in pDest.
virtual char * readString(int delimiter='\0')
read a delimiter-terminated string
virtual lt_uint32 write(const lt_uint8 *pSrc, lt_uint32 numBytes)=0
Store the specified number of bytes in the data source.
virtual bool isEOF()=0
Test for end-of-stream.
virtual bool isOpen()=0
Test for stream openness.
virtual LT_STATUS seek(lt_int64 offset, LTIOSeekDir origin)=0
Moves the data access position to origin + offset.
virtual LTIOStreamInf * duplicate()=0
Clone the stream.
virtual lt_int64 tell()=0
Returns the current data access position as an offset from the start of the data.
virtual LT_STATUS open()=0
Opens the stream.
virtual LT_STATUS close()=0
Closes the stream.

Extensis