main.h
Go to the documentation of this file.
00001 #ifndef MAIN_HEADER
00002 #define MAIN_HEADER
00003 
00004 #include <iostream>
00005 #include <fstream>
00006 #include <vector>
00007 #include <ctime>
00008 #include "menu.h"
00009 #include "huffman.h"
00010 
00011 using namespace std;
00012 
00013 string read_string();
00014 
00015 string read_filename(bool exist);
00016 
00017 vector<bool> compress_single(Huffman* huffman_compr);
00018 
00019 void decompress_single(Huffman* huffman_compr, vector<bool> compr_bits);
00020 
00021 bool* compress_file(Huffman* huffman_compr, bool* compr_bits, int* count, int algo_id);
00022 
00023 void save_compression(bool* compr_bits, int length);
00024 
00025 void save_decompression(Huffman* huffman_compr);
00026 
00027 void build_tree(Huffman* huffman_compr, string filename);
00028 
00029 #endif
 All Classes Files Functions