-
Notifications
You must be signed in to change notification settings - Fork 0
/
lunt_day.h
48 lines (35 loc) · 810 Bytes
/
lunt_day.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
45
46
47
48
#pragma once
#ifndef DAY_H
#define DAY_H
#include "lunt_reminder.h"
#include "lunt_appointment.h"
#include <vector>
enum Weekday {
Monday = 1,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday,
Sunday
};
class Day
{
public:
//vector of Reminder pointers
std::vector<Reminder*> errands;
//dayIndex will hold the day's index within the array of days
int dayIndex, i;
//current will hold each day's day of the week
int dayOfWeek;
//constructors
Day();
Day(int pDayIndex, int pDayOfWeek);
//convert Weekday to string
static std::string weekdayToString(int);
void addErrand();
void removeErrand();
int numErrands();
std::string toString();
};
#endif