Skip to content
Permalink
master
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
#ifndef __DECOMPRESS_H__
#define __DECOMPRESS_H__
#include "Huffman.H"
#include<queue>
#include <memory>
using namespace std;
struct Header;
class Decompress : public Huffman {
shared_ptr<Header> _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(string output);
};
struct Header{
int bodySize;
int preorderSize;
string preorderStr;
queue<char> letters;
string body;
Header(){}
~Header(){}
};
#endif