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 
21 
22 
23 #define IN_BUF_SIZE (1 << 16)
24 #define OUT_BUF_SIZE (1 << 16)
25 
26 struct LzmaFile {
27 
28  LzmaFile();
29 
30  SRes Open(const std::string& fileName);
31  SRes Close();
32  SRes DecodeAll();
34  //SRes DecodeArray(double* data, const int length);
35  SRes ReadNextNumber(double& data);
36  SRes FillArray(double* data, const int length);
37 
39  int res;
41 
42  // std::ostringstream fStrNumber;
43 
45 
48 
49  std::queue<double> fStorage;
50 
51  size_t inPos;
52  size_t inSize;
53  size_t outPos;
54 
55  // string converting
57 
58  bool fReadSign;
63 
64  bool fNegative;
66 
67  double fMantisseR;
68  double fMantisseF;
70  int fExponent;
71 
72 };
73 
74 
75 
76 #endif
bool fExponentNegative
Definition: LzmaFile.h:65
bool fNegative
Definition: LzmaFile.h:64
unsigned long long int UInt64
Definition: Types.h:83
size_t outPos
Definition: LzmaFile.h:53
Byte inBuf[(1<< 16)]
Definition: LzmaFile.h:46
SRes ReadNextNumber(double &data)
Definition: LzmaFile.cc:86
#define OUT_BUF_SIZE
Definition: LzmaFile.h:24
bool fReadMantisseR
Definition: LzmaFile.h:59
size_t inSize
Definition: LzmaFile.h:52
SRes Close()
Definition: LzmaFile.cc:391
bool fReadSign
Definition: LzmaFile.h:58
std::queue< double > fStorage
Definition: LzmaFile.h:49
UInt64 unpackSize
Definition: LzmaFile.h:44
bool fReadMantisseF
Definition: LzmaFile.h:60
int res
Definition: LzmaFile.h:39
SRes DecodeBuffer()
Definition: LzmaFile.cc:162
bool fStartNumber
Definition: LzmaFile.h:56
int SRes
Definition: Types.h:43
SRes FillArray(double *data, const int length)
Definition: LzmaFile.cc:104
#define IN_BUF_SIZE
Definition: LzmaFile.h:23
int fExponent
Definition: LzmaFile.h:70
CFileSeqInStream inStream
Definition: LzmaFile.h:38
CLzmaDec state
Definition: LzmaFile.h:40
SRes DecodeAll()
Definition: LzmaFile.cc:339
int fMantisseFcount
Definition: LzmaFile.h:69
size_t inPos
Definition: LzmaFile.h:51
double fMantisseF
Definition: LzmaFile.h:68
Byte outBuf[(1<< 16)]
Definition: LzmaFile.h:47
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
unsigned char Byte
Definition: Types.h:55
double fMantisseR
Definition: LzmaFile.h:67
SRes Open(const std::string &fileName)
Definition: LzmaFile.cc:47
LzmaFile()
Definition: LzmaFile.cc:25
bool fReadExponentSign
Definition: LzmaFile.h:61
bool fReadExponent
Definition: LzmaFile.h:62