/*	Implements a DateClass class that stores month, day, and year.
	Two free functions are included: operator << and operator >>     */

#ifndef _DATECLASS_
#define _DATECLASS_

#include <iostream.h>
#include <lvpstring.h>
//#include <lvp\bool.h>
#include <stdlib.h>  // for atoi()

using namespace std;	// October 5, 2001

class DateClass {
public:
	DateClass();
	DateClass(int MonthArg, int DayArg, int YearArg);

	bool Read(istream & InFile);
	void SetDate(int MonthArg, int DayArg, int YearArg);
	void Write(ostream & OutFile) const;

	bool operator ==(const DateClass Date2) const;
	bool operator !=(const DateClass Date2) const;
	bool operator <(const DateClass Date2) const;
	bool operator <=(const DateClass Date2) const;
	bool operator >(const DateClass Date2) const;
	bool operator >=(const DateClass Date2) const;

private:
	int Month;
	int Day;
	int Year;
};

#include "date.cpp"
#endif
