finished Detector tests

This commit is contained in:
Neeflix
2018-06-28 19:03:17 +02:00
parent 54a0e0a5b8
commit bce5b12738
4 changed files with 22 additions and 11 deletions

View File

@@ -6,7 +6,8 @@
*/
#include "Event.h"
using namespace Input;
namespace Input
{
Event::Event(char address, int priority, std::string name) :
address(address), priority(priority), name(name)
@@ -14,7 +15,9 @@ Event::Event(char address, int priority, std::string name) :
CLOG_IF(VLOG_IS_ON(HIGH_VERBOSITY), INFO, INPUT_LOGGER) << "Created event: " << name << ", address: " << address;
}
bool Event::operator==(const Event& other)
bool operator==(const Event& left, const Event& right)
{
return this->name == other.name;
return left.name == right.name;
}
}