// Browser.h
// declares Browser class
// manages browsing

#ifndef Browser_H
#define Browser_H

#include "cs240.h"
#include "parser.h"
#include "database.h"
#include "stringlist.h"
#include <string>

class Browser : public CS240 {
		public:
				Browser( string = "stopWord.txt");		// constructor, accepts name of stopword file
				int readPages( string, string );		// reads all webpages starting with first string and ending when reached all links inside the limiting domain (second string)
				void writePages( string = "results/");	// writes html files, using parameter as output directory
				
		private:
				int readPage( string );					// reads a single page (passed by a string)
				Parser parser;							// parsing object
				DataBase database;						// main data structure
};

#endif
