-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.h
More file actions
39 lines (30 loc) · 732 Bytes
/
Copy pathLog.h
File metadata and controls
39 lines (30 loc) · 732 Bytes
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
//
// Created by alperen on 2.10.2023.
//
#ifndef SRC_LOG_H
#define SRC_LOG_H
#include <string>
#include <iostream>
#include <unordered_map>
using namespace std;
enum class ActivityType {
MESSAGE_RECEIVED,
MESSAGE_FORWARDED,
MESSAGE_SENT,
MESSAGE_DROPPED
};
class Log {
public:
Log(const string ×tamp, const string &message, int number_of_frames, int number_of_hops, const string &client_id,
const string &receiver_id, bool success, ActivityType type);
~Log();
string timestamp;
string message_content;
int number_of_frames;
int number_of_hops;
string sender_id;
string receiver_id;
bool success_status;
ActivityType activity_type;
};
#endif //SRC_LOG_H