finished detector

This commit is contained in:
Jonas Zeunert
2018-04-27 00:50:54 +02:00
parent a181f12d20
commit 65bf3e5958
77 changed files with 10430 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
/*
* 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 <set>
#include <string>
namespace Input
{
class InputEvent
{
public:
InputEvent(char address, std::string name) : address(address), name(name){}
bool operator==(const char other)
{
return this->address == other;
}
bool operator==(const std::string other)
{
return this->name == other;
}
bool operator<(const InputEvent& other)
{
return this->address < other.address;
}
private:
const char address;
const std::string name;
};
}
#endif /* INPUTEVENT_H_ */