mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-27 01:37:49 +01:00
22 lines
408 B
C++
22 lines
408 B
C++
//
|
|
// Created by Stepan Usatiuk on 23.05.2023.
|
|
//
|
|
|
|
#ifndef SEMBACKUP_COMMAND_H
|
|
#define SEMBACKUP_COMMAND_H
|
|
|
|
#include "Context.h"
|
|
|
|
/// Abstract base class for some process running with some Context
|
|
class Command {
|
|
public:
|
|
/// Runs the command with Context \p ctx
|
|
virtual void run(Context ctx) = 0;
|
|
|
|
/// Default virtual destructor
|
|
virtual ~Command() = default;
|
|
};
|
|
|
|
|
|
#endif//SEMBACKUP_COMMAND_H
|