CMS 3D CMS Logo

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