Mercurial > dedupe
view HuffmanString.hpp @ 57:c8111de2e0bb
Add functionality to decode directly from bitstring.
Use BitArrays getPaddedChar directly.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 13 Sep 2012 23:53:35 +0200 |
| parents | 76846cb92b5c |
| children |
line wrap: on
line source
#ifndef HUFFMANSTRING_HPP #define HUFFMANSTRING_HPP #include "HuffmanSet.hpp" #include <QtCore/QString> class HuffmanString { static HuffmanSet* set; HuffmanSet::key_t key; static void atExit(); public: HuffmanString(const QString& str = QString(), HuffmanSet* set = NULL); QString toString() const; operator QString() const; static HuffmanSet& getSet(); bool operator<(const HuffmanString& rhs) const; bool operator==(const HuffmanString& rhs) const; }; #endif //HUFFMANSTRING_HPP
