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 __COMPRESS_H__
#define __COMPRESS_H__
#include "Huffman.H"
using namespace std;
class Compress : public Huffman{
int _counter; // Counts the number of bits used for compression (Needed for the header)
map<char,int> countLetters();
string generateHeader();
string generateBody();
public:
Compress(string fname) : Huffman(fname), _counter(0){}
~Compress(){}
void generateTree();
void compressFile(string outFile);
};
#endif