Go to the documentation of this file.
17 #define THE_GZFILE reinterpret_cast<gzFile>(m_f)
27 "Error trying to open file: '%s'", fileName.c_str());
39 m_f = gzopen(fileName.c_str(),
format(
"wb%i", compress_level).c_str());
40 return m_f !=
nullptr;
66 return gzwrite(
THE_GZFILE,
const_cast<void*
>(Buffer), Count);
TSeekOrigin
Used in CStream::Seek.
GLenum GLsizei GLenum format
size_t Write(const void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for writing to the stream.
uint64_t getPosition() const override
Method for getting the current cursor position, where 0 is the first byte and TotalBytesCount-1 the l...
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
#define THROW_EXCEPTION(msg)
CFileGZOutputStream()
Constructor, without opening the file.
unsigned __int64 uint64_t
virtual ~CFileGZOutputStream()
Destructor.
uint64_t getTotalBytesCount() const override
This method is not implemented in this class.
bool fileOpenCorrectly() const
Returns true if the file was open without errors.
void close()
Close the file.
bool open(const std::string &fileName, int compress_level=1)
Open a file for write, choosing the compression level.
uint64_t Seek(int64_t, CStream::TSeekOrigin=sFromBeginning) override
This method is not implemented in this class.
size_t Read(void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for reading from the stream.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |