// Header file, defines the wentry class
// Nick Cash, 810:061-3
// Assignment 5

#ifndef INC_WTAB
#define INC_WTAB

using namespace std;

class wentry
{
  public:
    wentry();                        //ctor's
    wentry(string s);
    wentry(string s, int ref );
   ~wentry();                        //dctor

    int    GetRef() const { return mRef; }
    string GetStr() const { return mStr; }

    void SetRef(int i)    { mRef = i; }
    void SetSTr(string s) { mStr = s; }

    //operator overloading
    bool operator<(const wentry&) const;

    wentry *operator++();

  private:
    string mStr;
    int    mRef;
};


#endif //INC_WTAB