הערה (קובץ קוד)
קובץ זה הוא קובץ קוד מסוג C.
#pragma once
#include <string>
#include <vector>
#include "Action.h"
/**
* @class HistoryAction
* A subtype of Action, it shows the user a history of what he did in the system.
*/
class HistoryAction : public Action {
public:
virtual ~HistoryAction() = default;
/**
* Creates the action with the history to be displayed.
* @param historyVector the history of the user in the system.
*/
HistoryAction(const std::vector<std::string>& historyVector);
/**
* @brief Executes the action
*/
virtual void execute() const override;
private:
const std::vector<std::string> history;
};