refactored namespaaaces suckz

This commit is contained in:
Jonas Zeunert
2018-09-14 00:57:39 +02:00
parent 530893c404
commit 25da106bea
80 changed files with 149 additions and 255 deletions

View File

@@ -12,32 +12,29 @@
#include <string>
namespace FlippR_Driver
{
namespace Input
{
namespace FlippR_Driver {
namespace Input {
class Event
{
public:
Event(char address, int priority, std::string name);
class Event {
public:
Event(char address, int priority, std::string name);
friend bool operator==(const Event &left, const Event &right);
friend bool operator<(const Event &left, const Event &right) {
return left.priority < right.priority;
}
public:
std::string name;
char address;
int priority;
};
bool operator==(const Event &left, const Event &right);
friend bool operator==(const Event& left, const Event& right);
friend bool operator<(const Event& left, const Event& right)
{
return left.priority < right.priority;
}
public:
std::string name;
char address;
int priority;
};
bool operator==(const Event& left, const Event& right);
}
#endif /* INPUTEVENT_H_ */