// Letter.h
// declares Letter class
// stores words for each letter

#ifndef Letter_H
#define Letter_H

#include "cs240.h"
#include "stringlist.h"
#include "wordlist.h"
#include <string>

class Letter : private CS240 {
		public:
				void testWord();
				Letter( char = 0 );						// Constructor, initializes name to 0
				void print( string = "results/");		// prints a letter page with links to each word in words
				int tally(string, string, string);		// adds a word, and the appropriate URL info, returning 1 if word needed to be added and 0 otherwise
				char getName();							// return name
				int assignName( char );					// changes name
				
		private:
				WordList words;							// data element for all words starting with char name
				char name;								// name of letter object [0 - 25] -> 'a' - 'z'
};

#endif
