-
Notifications
You must be signed in to change notification settings - Fork 1
/
DateList.h
42 lines (30 loc) · 910 Bytes
/
DateList.h
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
//Maria Anna Kanellaki - 1115201400060
#ifndef DATELIST_H
#define DATELIST_H
#include "PatientRecord.h"
#include "Date.h"
#include "DiseaseList.h"
class DateNode { //stores date, record and a list of diseases
Date * date;
PatientRecord * record;
DiseaseList * myDiseases; //list that stores all diseases recorded for a date
DateNode * next;
public:
DateNode(PatientRecord*);
~DateNode();
DateNode * getNext() const;
void setNext(DateNode *next);
Date *getDate() const;
PatientRecord *getRecord() const;
DiseaseList *getMyDiseases();
};
class DateList { //list that stores all dates a worker read successfully
DateNode * head;
public:
DateList();
void push(DateNode*);
DateNode * SearchDate(string);
~DateList();
DateNode *getHead();
};
#endif