-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActivityOffline.h
53 lines (40 loc) · 1.35 KB
/
ActivityOffline.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 Daniel on 12/3/2022.
//
#ifndef PROJECT_OOP_ACTIVITYOFFLINE_H
#define PROJECT_OOP_ACTIVITYOFFLINE_H
#include <ostream>
#include "string"
#include "Activity.h"
#include "Location.h"
#include "DateTime.h"
class ActivityOffline: public Activity {
Location location;
std::string weather_condition;
std::string catering_company;
public:
ActivityOffline(Location& location, const std::string &weatherCondition, const std::string &cateringCompany,
unsigned activity_id): Activity(activity_id){
this->location = location;
this->weather_condition = weatherCondition;
this->catering_company = cateringCompany;
};
Location &getLocation() {
return location;
}
const string &getWeatherCondition() const {
return weather_condition;
}
const string &getCateringCompany() const {
return catering_company;
}
string return_file_path() override {
return "ActivityOffline does not have file_path";
}
friend ostream &operator<<(ostream &os, ActivityOffline &offline) {
os <<"activity id: "<< offline.getId() << " weather_condition: " << offline.weather_condition << " catering_company: " << offline.catering_company
<< " location: " << offline.location;
return os;
}
};
#endif //PROJECT_OOP_ACTIVITYOFFLINE_H