Avionics
Dropship Simulator
Message.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
enum
MessageLevel
6
{
7
Environmental
,
8
Warning
,
9
Caution
,
10
Advisory
,
11
Status
12
};
13
14
class
Message
15
{
16
public
:
17
std::wstring
text
;
18
MessageLevel
level
;
19
bool
acknowledged
;
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
};
Advisory
Definition:
Message.h:10
Message::operator<
friend bool operator<(Message &a, Message &b)
Definition:
Message.h:22
Warning
Definition:
Message.h:8
Message::level
MessageLevel level
Definition:
Message.h:18
Message::acknowledged
bool acknowledged
Definition:
Message.h:19
Message
Definition:
Message.h:14
Message::text
std::wstring text
Definition:
Message.h:17
Message::time
double time
Definition:
Message.h:20
Environmental
Definition:
Message.h:7
Status
Definition:
Message.h:11
MessageLevel
MessageLevel
Definition:
Message.h:5
Caution
Definition:
Message.h:9
Message.h
Generated on Sat Feb 13 2021 09:30:42 for Avionics by
1.8.14