eventhistory.h

来自「用data miming技术进行false prediction」· C头文件 代码 · 共 35 行

H
35
字号
#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 + =
减小字号Ctrl + -
显示快捷键?