lab_huffman
Hazardous Huffman Codes
|
decoder namespace: collection of functions used for running the decoder program. More...
Functions | |
int | main (const std::vector< std::string > &args) |
Main method of the program, should you choose to run it as a command line version. More... | |
void | printUsage (const std::string &programName) |
Prints the usage of the command line version. More... | |
void | decodeFile (const std::string &inputName, const std::string &treeName, const std::string &outputName) |
Decodes a file using the given HuffmanTree. More... | |
decoder namespace: collection of functions used for running the decoder program.
void decoder::decodeFile | ( | const std::string & | inputName, |
const std::string & | treeName, | ||
const std::string & | outputName | ||
) |
Decodes a file using the given HuffmanTree.
inputName | Name of the file to be decompressed. |
treeName | Name of the file from which to read the HuffmanTree. |
outputName | Name of the file to write decompressed output to. |
int decoder::main | ( | const std::vector< std::string > & | args | ) |
Main method of the program, should you choose to run it as a command line version.
args | The command line arguments, with args[0] being the program name. |
void decoder::printUsage | ( | const std::string & | programName | ) |
Prints the usage of the command line version.
programName | The name of the program. |