// HTMLWriter.h
// declares HTMLWriter class
// outputs to HTML file

#ifndef HTMLWriter_H
#define HTMLWriter_H

#include "cs240.h"
#include <string>
#include <fstream.h>

class HTMLWriter : public CS240 {
		public:
				HTMLWriter();							// constructor - initializes outfile
				int open( string );						// opens a new file for output
				void close();							// closes output file
				void header( string, string = "");		// writes html header info, accepting title and a string for miscellanous js or css info
				void footer();							// writes end of html document
				void link( string, string);				// writes a link (name of link, location of link)
				void bodyText( string );				// writes a segment of regular html body text
				void divider();							// writes a divider for body text
				void divideList();						// writes an inline divider
		private:
				ofstream outfile;						// outfile stream.  All methods write to this
};

#endif
