7#include "slideio/base/exceptions.hpp"
8#include "slideio/drivers/vsi/vsi_api_def.hpp"
12#pragma warning( push )
13#pragma warning(disable: 4251)
19 class SLIDEIO_VSI_EXPORTS VSIStream
22 VSIStream(std::string& filePath);
26 m_stream->read((
char*)&value,
sizeof(T));
27 if (m_stream->bad()) {
28 RAISE_RUNTIME_ERROR <<
"VSI driver: error by reading stream";
34 m_stream->read((
char*)&value,
sizeof(T));
35 if (m_stream->bad()) {
36 RAISE_RUNTIME_ERROR <<
"VSI driver: error by reading stream";
40 std::string readString(
size_t dataSize);
41 int64_t getPos()
const;
42 void setPos(int64_t pos);
44 void skipBytes(uint32_t bytes);
45 void readBytes(uint8_t* bytes, uint32_t size);
47 std::unique_ptr<std::ifstream> m_stream;
Definition: exceptions.hpp:12