/* * InputEvent.h * * Created on: Apr 5, 2018 * Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht */ #ifndef INPUTEVENT_H_ #define INPUTEVENT_H_ #include #include namespace Input { class InputEvent { public: InputEvent(char address, char priority, std::string name) : address(address), priority(priority), name(name){} bool operator==(const InputEvent& other) { return this->name == other.name; } bool operator<(const InputEvent& other) { return this->priority < other.priority; } private: const char address; const char priority; const std::string name; }; } #endif /* INPUTEVENT_H_ */