VTK  9.2.5
vtkLZMADataCompressor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLZMADataCompressor.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
32#ifndef vtkLZMADataCompressor_h
33#define vtkLZMADataCompressor_h
34
35#include "vtkDataCompressor.h"
36#include "vtkIOCoreModule.h" // For export macro
37
38class VTKIOCORE_EXPORT vtkLZMADataCompressor : public vtkDataCompressor
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
44
51 size_t GetMaximumCompressionSpace(size_t size) override;
56 // Compression level setter required by vtkDataCompressor.
57 void SetCompressionLevel(int compressionLevel) override;
58
59 // Compression level getter required by vtkDataCompressor.
60 int GetCompressionLevel() override;
61
62protected:
65
67
68 // Compression method required by vtkDataCompressor.
69 size_t CompressBuffer(unsigned char const* uncompressedData, size_t uncompressedSize,
70 unsigned char* compressedData, size_t compressionSpace) override;
71 // Decompression method required by vtkDataCompressor.
72 size_t UncompressBuffer(unsigned char const* compressedData, size_t compressedSize,
73 unsigned char* uncompressedData, size_t uncompressedSize) override;
74
75private:
77 void operator=(const vtkLZMADataCompressor&) = delete;
78};
79
80#endif
Abstract interface for data compression classes.
a simple class to control print indentation
Definition: vtkIndent.h:40
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