action.h

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

קובץ זה הוא קובץ קוד מסוג C.

#pragma once

/**
 * @class Action
 * An action to be executed in the system.
 * It does something in the system :O - why do I write these comments? idk :)
 */
class Action
{
public:
    virtual ~Action() = default;

    Action(const Action&) = delete;
    Action& operator=(const Action&) = delete;

    /**
     * @brief Executes the action
     */
    virtual void execute() const = 0;

protected:
    Action() = default;
};