midday-commander
Loading...
Searching...
No Matches
Action.h
Go to the documentation of this file.
1//
2// Created by Vojtěch Pašek on 11.05.2023.
3//
4
5#ifndef MIDDAY_COMMANDER_ACTION_H
6#define MIDDAY_COMMANDER_ACTION_H
7
8#include <vector>
9#include <filesystem>
10
11#include "../FileView.h"
12#include "../State.h"
13
17class Action {
18public:
19 Action() = default;
20 virtual ~Action() = default;
21 virtual void execute(FileView&, State&) = 0;
22 [[nodiscard]] virtual std::unique_ptr<Action> clone() const = 0;
23};
24
25#endif //MIDDAY_COMMANDER_ACTION_H
An abstract class representing a general operation in the program.
Definition: Action.h:17
virtual std::unique_ptr< Action > clone() const =0
virtual void execute(FileView &, State &)=0
virtual ~Action()=default
Action()=default
Represents a file view of the Application.
Definition: FileView.h:16
Holds the global state of the Application.
Definition: State.h:16