חזור לתיקייה: actions

HistoryAction

חיפוש בתיקיה
Ctrl K
לחץ כאן או הקש Ctrl K כדי לחפש בכל התיקיה

    HistoryAction

    02340124

    מבוא לתכנות מערכות

    רשימות הרצאה לקריאה בשבת

    HistoryAction

    הופק מתוך תקיית התואר של שקד

    uni-folder.vercel.app

    historyaction.h

    הערה (קובץ קוד)

    קובץ זה הוא קובץ קוד מסוג 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;
    };