Skip to content

Commit 9b09d66

Browse files
committed
Initial Commit
1 parent 426adc5 commit 9b09d66

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/ESPressio_IEvent.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
#pragma once
22

33
#include <ESPressio_Persistent.hpp>
4+
#include <cstdint>
45

56
using namespace ESPressio::Base;
67
namespace ESPressio {
78

89
namespace Event {
910

1011
class IEvent : public Persistent<IEvent> {
11-
private:
12-
static uint16_t _classId = 0;
12+
protected:
13+
static uint16_t _classId;
1314
public:
14-
static bool operator()(const MyClass& a, const MyClass& b) const {
15-
return a._classID < b._classID;
16-
}
17-
18-
static bool operator==(const MyClass& other) const {
19-
return _classID == other._classID;
15+
static uint16_t GetClassID() {
16+
return _classId;
2017
}
2118

2219
static void tmpSetClassID(uint16_t classId) {

0 commit comments

Comments
 (0)