Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
room.h
Go to the documentation of this file.
1 #ifndef ROOM_H
2 #define ROOM_H
3 
4 #include <QDebug>
5 
6 struct Room {
7  QString mgr;
8  QString name;
9  int priority;
10  Room (const QString &_name, const QString &_mgr, int _priority)
11  {
12  mgr = _mgr;
13  name = _name;
14  priority = _priority;
15  };
16 };
17 
18 inline QDebug& operator<<(QDebug& debug, const Room& r)
19 {
20  debug << r.name << "{mgr=" << r.mgr << ",prio=" << r.priority << "}";
21  return debug;
22 }
23 
24 inline bool operator<(const Room& a, const Room& b)
25 {
26  return a.priority < b.priority;
27 }
28 #endif
Room(const QString &_name, const QString &_mgr, int _priority)
Definition: room.h:10
QString mgr
Definition: room.h:7
QDebug & operator<<(QDebug &debug, const Room &r)
Definition: room.h:18
bool operator<(const Room &a, const Room &b)
Definition: room.h:24
int priority
Definition: room.h:9
QString name
Definition: room.h:8
Definition: room.h:6