The SWORD Project  1.9.0.svnversion
 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 
33 
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 
49 #endif
#define SWORD_NAMESPACE_START
Definition: defs.h:39
#define SWDLLEXPORT
Definition: defs.h:171
virtual void decode(void)
Definition: swcomprs.cpp:193
virtual void setLevel(int l)
Definition: swcomprs.h:53
SW_u64 memlimit
Definition: xzcomprs.h:37
virtual void encode(void)
Definition: swcomprs.cpp:180
unsigned long long SW_u64
Definition: sysdata.h:56
#define SWORD_NAMESPACE_END
Definition: defs.h:40