midday-commander
Loading...
Searching...
No Matches
File.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_FILE_H
6#define MIDDAY_COMMANDER_FILE_H
7
8#include <filesystem>
9
10#include "Entry.h"
11
15class File : public Entry {
16public:
17 explicit File(std::filesystem::path);
18 void print(Modifier) const override;
19
20 bool isFile() override;
21 bool isFolder() override;
22 bool isSymlink() override;
23
24 bool remove() override;
25 bool copy(std::filesystem::path target) override;
26 bool move(std::filesystem::path target) override;
27};
28
29
30#endif //MIDDAY_COMMANDER_FILE_H
Modifier
Used to modify Entry.print()
Definition: Modifier.h:11
An abstract class representing a general FileView entry.
Definition: Entry.h:15
Represents a file in the program.
Definition: File.h:15
bool copy(std::filesystem::path target) override
Definition: File.cpp:35
bool isSymlink() override
Definition: File.cpp:54
bool remove() override
Definition: File.cpp:30
bool isFolder() override
Definition: File.cpp:50
bool isFile() override
Definition: File.cpp:46
bool move(std::filesystem::path target) override
Definition: File.cpp:41
void print(Modifier) const override
Definition: File.cpp:14