-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment.h
More file actions
43 lines (39 loc) · 1.47 KB
/
Assignment.h
File metadata and controls
43 lines (39 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//Christian Nissen
//cant4f@mail.umkc.edu
//uses Date.h and StringTokenizer.h classes provided by instructor
#ifndef ASSIGNMENT_H
#define ASSIGNMENT_H
#include <string>
#include "Date.h"
//#include "AssignStatus.h" //took out because i think i found a better way to do the enum
using namespace std;
enum AssignStatus{Assigned,Complete,Late};
class Assignment
{
public:
Assignment();
Assignment(string due, string descrip, string assigned, string status);
Assignment(string dataLine);//a constructor so you can just pass in the entire line
Assignment(const Assignment& original); //copy constructor to make placing assignment in a different list easier
AssignStatus getStatus();
const string getStringStatus();//added so that you could also have a string value for printing
const string GetdueDate();
const string GetAssignDate();
const string getDescription();
void completeAssignment(Date completeDate);
void changeDescription(string newDescrip);
void changeDueDate(string newDueDate);
//AssignStatus makeStatus(const string& stringStatus);//added so that the constructor could have a string of the status passed in
Assignment parseAssignment(const string& dataline);
bool operator <(const Assignment& other) const;
bool operator ==(const Assignment& other) const;
//bool operator =(const Assignment& other) const;
private:
string Description;
AssignStatus AssignmentStatus;
Date DueDate;
Date AssignDate;
bool DatesValid();
void makeStatus(const string& stringStatus);
};
#endif