The SWORD Project
1.9.0.svnversion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
xzcomprs.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* xzcomprs.h - class XzCompress: an SWCompress class which provides
4
* xz (LZMA2) compression
5
*
6
* $Id: xzcomprs.h 3786 2020-08-30 11:35:14Z scribe $
7
*
8
* Copyright 2000-2014 CrossWire Bible Society (http://www.crosswire.org)
9
* CrossWire Bible Society
10
* P. O. Box 2528
11
* Tempe, AZ 85280-2528
12
*
13
* This program is free software; you can redistribute it and/or modify it
14
* under the terms of the GNU General Public License as published by the
15
* Free Software Foundation version 2.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* General Public License for more details.
21
*
22
*/
23
24
#ifndef XZCOMPRS_H
25
#define XZCOMPRS_H
26
27
#include <
swcomprs.h
>
28
29
#include <
defs.h
>
30
#include <
sysdata.h
>
31
32
SWORD_NAMESPACE_START
33
34
class
SWDLLEXPORT
XzCompress
:
public
SWCompress
{
35
36
private
:
37
SW_u64
memlimit
;
// memory usage limit during decompression
38
39
public
:
40
XzCompress
();
41
virtual
~
XzCompress
();
42
43
virtual
void
encode
(
void
);
44
virtual
void
decode
(
void
);
45
virtual
void
setLevel
(
int
l);
46
};
47
48
SWORD_NAMESPACE_END
49
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
SWCompress::decode
virtual void decode(void)
Definition:
swcomprs.cpp:193
XzCompress
Definition:
xzcomprs.h:34
SWCompress
Definition:
swcomprs.h:31
SWCompress::setLevel
virtual void setLevel(int l)
Definition:
swcomprs.h:53
sysdata.h
swcomprs.h
defs.h
XzCompress::memlimit
SW_u64 memlimit
Definition:
xzcomprs.h:37
SWCompress::encode
virtual void encode(void)
Definition:
swcomprs.cpp:180
SW_u64
unsigned long long SW_u64
Definition:
sysdata.h:56
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
include
xzcomprs.h
Generated by
1.8.5