📄 eventhistory.h
字号:
#ifndef EVENT_HISTORY_H
#define EVENT_HISTORY_H
#include <iostream>
#include <vector>
#include <algorithm>
#include "Event.h"
#include "AppException.h"
using namespace std;
class EventHistory {
private:
int lastFailTime;
int secondLastFailTime;
vector<Event*>* eventList;
void printEventList();
public:
EventHistory();
~EventHistory();
vector<Event*>* getEventList() const;
void addEvent(Event* event);
void flushEvents(int historyStartTime);
int getEventListSize() const;
int getLastFailTime() const;
int getSecondLastFailTime() const;
};
#endif /* EVENT_HISTORY_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -