#pragma once
#include "Node.h"
#include "Leaf.h"
#include <vector>
#include <string>
using namespace std;
typedef Node<char> CharNode;

class Huffman
{
public:
	Huffman(string Filename);
	~Huffman(void);
private:
	void Traverse(CharNode *current, string current_code);
	string byteCode;
	void Encode(vector<Leaf*> *leafs, string filename);

};

