Skip to content
Permalink
6ca19c3d65
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
36 lines (26 sloc) 584 Bytes
#ifndef __DECOMPRESS_H__
#define __DECOMPRESS_H__
#include "Huffman.H"
#include<queue>
#include <memory>
using namespace std;
struct FileParse;
class Decompress : public Huffman {
shared_ptr<FileParse> _header; // Will hold parse Compressed file info
shared_ptr<Node> generateTreeHelper(string& bin);
void parseText();
void generateTree();
public:
Decompress(string fname): Huffman(fname){}
void decompressFile();
};
struct FileParse{
int bodySize;
int headerSize;
string preorderStr;
queue<char> letters;
string body;
FileParse(){}
~FileParse(){}
};
#endif