blob: bfc70d00cad4f13920ca1cf913ca469fd9ad79b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef ROOM_H
#define ROOM_H
struct Room {
QString mgr;
QString name;
int priority;
Room (QString _name, QString _mgr, int _priority) {
mgr = _mgr;
name = _name;
priority = _priority;
};
};
inline QDebug operator<<(QDebug debug, const Room& r) {
debug << r.name << "{mgr=" << r.mgr << ",prio=" << r.priority << "}";
return debug;
}
inline bool operator<(const Room& a, const Room& b) {
return a.priority < b.priority;
}
#endif
|