/*------------------------------------------------------------------------------
Description: DetailShift Class for Detail Scheduler
Author: Chris Huyler, Tim Cross
Language: C++
Name: DetailShift.h
Date: March 22, 2000
------------------------------------------------------------------------------*/

class DetailShift:public Shift {
	public:
      DetailShift();
      DetailShift(int d,int s, int e, char *loc, char *em);
      void Set_Init_Detail();
   	void Set_Location();
      void Set_Employer();
      char* Get_Location();
      char* Get_Employer();
      string Identify();      // return type of shift
      void Print();           // print all information
   private:
   	char Location[25];
      char Employer[25];
};
DetailShift::DetailShift(){}
DetailShift::DetailShift(int d,int s, int e, char *loc, char *em)
{
	Day = d;
   StartTime = s;
   EndTime = e;
   strcpy(Location,loc);
   strcpy(Employer,em);
}
void DetailShift::Set_Init_Detail(){
	Set_Init_Shift();
   Set_Location();
   Set_Employer();
}
void DetailShift::Set_Location(){
   textcolor(WHITE);
	cprintf("\nEnter the Location: ");
   textcolor(LIGHTGRAY);
   gets(Location);
}
void DetailShift::Set_Employer(){
   textcolor(WHITE);
	cprintf("\nEnter the Employer: ");
   textcolor(LIGHTGRAY);
   gets(Employer);
}
char* DetailShift::Get_Location(){
	return(Location);
}
char* DetailShift::Get_Employer(){
	return(Employer);
}
string DetailShift::Identify(){
	return("DetailShift");
}
void DetailShift::Print(){
	cout << endl << "\tTime: ";
   d.print_day(Day);
   cout << " from " << StartTime << " to " << EndTime
        << endl << "\tLocation: " << Location
        << endl << "\tEmployer: " << Employer << endl;
}
