-
Notifications
You must be signed in to change notification settings - Fork 0
/
Activity.h
47 lines (34 loc) · 1020 Bytes
/
Activity.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
//
// Created by Niccolò Caselli on 14/06/23.
//
#ifndef ACTIVITYJOURNAL_ACTIVITY_H
#define ACTIVITYJOURNAL_ACTIVITY_H
#include "stdio.h"
#include "string"
class Activity {
public:
Activity(const std::string& description, std::tm startTime, std::tm endTime) : description(description), startTime(startTime), endTime(endTime) {}
const std::string &getDescription() const {
return description;
}
void setDescription(const std::string &description) {
Activity::description = description;
}
const std::tm &getStartTime() const {
return startTime;
}
void setStartTime(const std::tm &startTime) {
Activity::startTime = startTime;
}
const std::tm &getEndTime() const {
return endTime;
}
void setEndTime(const std::tm &endTime) {
Activity::endTime = endTime;
}
private:
std::string description;
std::tm startTime;
std::tm endTime;
};
#endif //ACTIVITYJOURNAL_ACTIVITY_H