57         const std::string& fileName, 
int compress_level = 1,
    73     size_t Read(
void* Buffer, 
size_t Count) 
override;
    74     size_t Write(
const void* Buffer, 
size_t Count) 
override;
    77     !std::is_copy_constructible_v<CFileGZOutputStream> &&
    78         !std::is_copy_assignable_v<CFileGZOutputStream>,
 TSeekOrigin
Used in CStream::Seek. 
bool open(const std::string &fileName, int compress_level=1, mrpt::optional_ref< std::string > error_msg=std::nullopt)
Open a file for write, choosing the compression level. 
spimpl::impl_ptr< T > pimpl
uint64_t getPosition() const override
Method for getting the current cursor position, where 0 is the first byte and TotalBytesCount-1 the l...
std::optional< std::reference_wrapper< T > > optional_ref
Shorter name for std::optional<std::reference_wrapper<T>> 
bool fileOpenCorrectly() const
Returns true if the file was open without errors. 
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
size_t Read(void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for reading from the stream. 
uint64_t getTotalBytesCount() const override
This method is not implemented in this class. 
void close()
Close the file. 
bool is_open()
Returns true if the file was open without errors. 
CFileGZOutputStream & operator=(const CFileGZOutputStream &)=delete
size_t Write(const void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for writing to the stream. 
uint64_t Seek(int64_t, CStream::TSeekOrigin=sFromBeginning) override
This method is not implemented in this class. 
CFileGZOutputStream()
Constructor, without opening the file. 
Saves data to a file and transparently compress the data using the given compression level...
~CFileGZOutputStream() override
Destructor.