midday-commander
Loading...
Searching...
No Matches
src
entry
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
15
class
File
:
public
Entry
{
16
public
:
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
Entry.h
Modifier
Modifier
Used to modify Entry.print()
Definition:
Modifier.h:11
Entry
An abstract class representing a general FileView entry.
Definition:
Entry.h:15
File
Represents a file in the program.
Definition:
File.h:15
File::copy
bool copy(std::filesystem::path target) override
Definition:
File.cpp:35
File::isSymlink
bool isSymlink() override
Definition:
File.cpp:54
File::remove
bool remove() override
Definition:
File.cpp:30
File::isFolder
bool isFolder() override
Definition:
File.cpp:50
File::isFile
bool isFile() override
Definition:
File.cpp:46
File::move
bool move(std::filesystem::path target) override
Definition:
File.cpp:41
File::print
void print(Modifier) const override
Definition:
File.cpp:14
Generated by
1.9.6