VTK  9.4.20241219
vtkLZMADataCompressor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20#ifndef vtkLZMADataCompressor_h
21#define vtkLZMADataCompressor_h
22
23#include "vtkDataCompressor.h"
24#include "vtkIOCoreModule.h" // For export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKIOCORE_EXPORT vtkLZMADataCompressor : public vtkDataCompressor
28{
29public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
33
40 size_t GetMaximumCompressionSpace(size_t size) override;
45 // Compression level setter required by vtkDataCompressor.
46 void SetCompressionLevel(int compressionLevel) override;
47
48 // Compression level getter required by vtkDataCompressor.
49 int GetCompressionLevel() override;
50
51protected:
54
56
57 // Compression method required by vtkDataCompressor.
58 size_t CompressBuffer(unsigned char const* uncompressedData, size_t uncompressedSize,
59 unsigned char* compressedData, size_t compressionSpace) override;
60 // Decompression method required by vtkDataCompressor.
61 size_t UncompressBuffer(unsigned char const* compressedData, size_t compressedSize,
62 unsigned char* uncompressedData, size_t uncompressedSize) override;
63
64private:
66 void operator=(const vtkLZMADataCompressor&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
Abstract interface for data compression classes.
a simple class to control print indentation
Definition vtkIndent.h:108
Data compression using LZMA Utils.
~vtkLZMADataCompressor() override
size_t GetMaximumCompressionSpace(size_t size) override
Get the maximum space that may be needed to store data of the given uncompressed size after compressi...
size_t CompressBuffer(unsigned char const *uncompressedData, size_t uncompressedSize, unsigned char *compressedData, size_t compressionSpace) override
size_t UncompressBuffer(unsigned char const *compressedData, size_t compressedSize, unsigned char *uncompressedData, size_t uncompressedSize) override
static vtkLZMADataCompressor * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetCompressionLevel(int compressionLevel) override
Get/Set the compression level.
int GetCompressionLevel() override