midday-commander
Loading...
Searching...
No Matches
Public Member Functions | List of all members
File Class Reference

Represents a file in the program. More...

#include <File.h>

Inheritance diagram for File:
[legend]
Collaboration diagram for File:
[legend]

Public Member Functions

 File (std::filesystem::path)
 
void print (Modifier) const override
 
bool isFile () override
 
bool isFolder () override
 
bool isSymlink () override
 
bool remove () override
 
bool copy (std::filesystem::path target) override
 
bool move (std::filesystem::path target) override
 
- Public Member Functions inherited from Entry
 Entry (std::filesystem::path path)
 
virtual ~Entry ()=default
 
virtual void print (Modifier modifier) const =0
 
virtual bool isFile ()=0
 
virtual bool isFolder ()=0
 
virtual bool isSymlink ()=0
 
virtual bool remove ()=0
 
virtual bool copy (std::filesystem::path target)=0
 
virtual bool move (std::filesystem::path target)=0
 

Additional Inherited Members

- Public Attributes inherited from Entry
std::filesystem::path path
 

Detailed Description

Represents a file in the program.

Constructor & Destructor Documentation

◆ File()

File::File ( std::filesystem::path  path)
explicit

Member Function Documentation

◆ copy()

bool File::copy ( std::filesystem::path  target)
overridevirtual

Implements Entry.

Here is the caller graph for this function:

◆ isFile()

bool File::isFile ( )
overridevirtual

Implements Entry.

◆ isFolder()

bool File::isFolder ( )
overridevirtual

Implements Entry.

◆ isSymlink()

bool File::isSymlink ( )
overridevirtual

Implements Entry.

◆ move()

bool File::move ( std::filesystem::path  target)
overridevirtual

Implements Entry.

Here is the call graph for this function:

◆ print()

void File::print ( Modifier  modifier) const
overridevirtual

Implements Entry.

Here is the call graph for this function:

◆ remove()

bool File::remove ( )
overridevirtual

Implements Entry.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: