Avionics
Dropship Simulator
Message.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
6 {
12 };
13 
14 class Message
15 {
16 public:
17  std::wstring text;
20  double time;
21 
22  friend bool operator< (Message &a, Message &b)
23  {
24  return a.level < b.level || (a.level == b.level && a.time < b.time);
25  }
26 };
friend bool operator<(Message &a, Message &b)
Definition: Message.h:22
Definition: Message.h:8
MessageLevel level
Definition: Message.h:18
bool acknowledged
Definition: Message.h:19
std::wstring text
Definition: Message.h:17
double time
Definition: Message.h:20
Definition: Message.h:11
MessageLevel
Definition: Message.h:5
Definition: Message.h:9