view HuffmanString.hpp @ 52:725b0d776f3c

Fix a lot of problems with BitArray and reorganize which functions are located in header and file.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 13 Sep 2012 23:23:14 +0200
parents f711ddb56ae7
children 76846cb92b5c
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;
public:

  HuffmanString(const QString& str = QString(), HuffmanSet* set = NULL);
  QString toString() const;
  operator QString() const;
  bool operator<(const HuffmanString& rhs) const;
  bool operator==(const HuffmanString& rhs) const;
};

#endif //HUFFMANSTRING_HPP