CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LzmaFile.h
Go to the documentation of this file.
1 #ifndef _include_LzmaFile_h_
2 #define _include_LzmaFile_h_
3 
4 #include "Types.h"
5 #include "7zFile.h"
6 #include "LzmaDec.h"
7 
8 #include <string>
9 #include <queue>
10 
11 #include "LzmaDec.h"
12 #include "Alloc.h"
13 #include "Types.h"
14 #include "7zFile.h"
15 
16 #include <sstream>
17 #include <string>
18 #include <iostream>
19 #include <queue>
20 using namespace std;
21 
22 
23 
24 #define IN_BUF_SIZE (1 << 16)
25 #define OUT_BUF_SIZE (1 << 16)
26 
27 struct LzmaFile {
28 
29  LzmaFile();
30 
31  SRes Open(const std::string& fileName);
32  SRes Close();
33  SRes DecodeAll();
34  SRes DecodeBuffer();
35  //SRes DecodeArray(double* data, const int length);
36  SRes ReadNextNumber(double& data);
37  SRes FillArray(double* data, const int length);
38 
40  int res;
42 
43  // std::ostringstream fStrNumber;
44 
46 
47  Byte inBuf[IN_BUF_SIZE];
48  Byte outBuf[OUT_BUF_SIZE];
49 
50  std::queue<double> fStorage;
51 
52  size_t inPos;
53  size_t inSize;
54  size_t outPos;
55 
56  // string converting
58 
59  bool fReadSign;
64 
65  bool fNegative;
67 
68  double fMantisseR;
69  double fMantisseF;
71  int fExponent;
72 
73 };
74 
75 
76 
77 #endif
bool fExponentNegative
Definition: LzmaFile.h:66
unsigned long long int UInt64
Definition: Types.h:83
bool fNegative
Definition: LzmaFile.h:65
unsigned char Byte
Definition: Types.h:55
size_t outPos
Definition: LzmaFile.h:54
#define OUT_BUF_SIZE
Definition: LzmaFile.h:25
bool fReadMantisseR
Definition: LzmaFile.h:60
size_t inSize
Definition: LzmaFile.h:53
bool fReadSign
Definition: LzmaFile.h:59
std::queue< double > fStorage
Definition: LzmaFile.h:50
UInt64 unpackSize
Definition: LzmaFile.h:45
bool fReadMantisseF
Definition: LzmaFile.h:61
int res
Definition: LzmaFile.h:40
bool fStartNumber
Definition: LzmaFile.h:57
#define IN_BUF_SIZE
Definition: LzmaFile.h:24
int fExponent
Definition: LzmaFile.h:71
CFileSeqInStream inStream
Definition: LzmaFile.h:39
CLzmaDec state
Definition: LzmaFile.h:41
int fMantisseFcount
Definition: LzmaFile.h:70
size_t inPos
Definition: LzmaFile.h:52
double fMantisseF
Definition: LzmaFile.h:69
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
double fMantisseR
Definition: LzmaFile.h:68
int SRes
Definition: Types.h:43
bool fReadExponentSign
Definition: LzmaFile.h:62
bool fReadExponent
Definition: LzmaFile.h:63