-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalendar.h
44 lines (32 loc) · 847 Bytes
/
Calendar.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
43
44
/*
Author: Rahul M
Description: Calendar header file.
*/
#pragma once
#ifndef Calendar_H
#define Calendar_H
#include <string>
#include <vector>
#include "Reminder.h"
#include "Appointment.h"
#include "Day.h"
using std::string;
using std::vector;
class Calendar{
private:
string text;
int DayStart; //In range 0 to 6 for the Array WeekDays
int numDays;
Day** DaysArr;
string WeekDays[7] = { "Monday", "Tuesday", "Wednesday", "Thursday","Friday","Saturday","Sunday" };
public:
//constructors and destructor.
Calendar();
Calendar (string,int,int);
~Calendar(); //used for deleting the Day* array.
void displayCalandar();
void WriteToFile(string);
//used to access a day in the array DaysArr. It returns a pointer.
Day* AccessDay(int);
};
#endif