-
Notifications
You must be signed in to change notification settings - Fork 0
/
Activity.h
53 lines (40 loc) · 1.01 KB
/
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
48
49
50
51
52
53
//
// Created by gabry on 7/25/24.
//
#ifndef TODOLIST_ACTIVITY_H
#define TODOLIST_ACTIVITY_H
#include <iostream>
class Activity {
public:
Activity(const std::string& name, const std::string& currTime): nameActivity(name), startTime(currTime) {
}
std::string getNameActivity() const{
return nameActivity; //FIXME
}
bool isDone() const {
return done;
}
std::string getStartTime() const{
return startTime;
}
std::string getEndTime() const{
if (!done)
std::cout<<"Activity not finished yet";
return endTime;
}
void setNameActivity(const std::string &nameActivity){
Activity::nameActivity = nameActivity;
}
void setDone(const bool done) {
Activity::done = done;
}
void setEndTime(const std::string &endTime){
Activity::endTime = endTime;
}
private:
std::string nameActivity;
bool done = false;
std::string startTime;
std::string endTime;
};
#endif //TODOLIST_ACTIVITY_H