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

Represents a symlink in the program. More...

#include <Symlink.h>

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

Public Member Functions

 Symlink (const std::filesystem::path &)
 
void print (Modifier) const override
 
bool isFile () override
 
bool isFolder () override
 
bool isSymlink () override
 
bool remove () override
 
bool move (std::filesystem::path target) override
 
bool copy (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
 

Private Attributes

bool circular = false
 

Additional Inherited Members

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

Detailed Description

Represents a symlink in the program.

Constructor & Destructor Documentation

◆ Symlink()

Symlink::Symlink ( const std::filesystem::path &  path)
explicit

Member Function Documentation

◆ copy()

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

Implements Entry.

Here is the caller graph for this function:

◆ isFile()

bool Symlink::isFile ( )
overridevirtual

Implements Entry.

◆ isFolder()

bool Symlink::isFolder ( )
overridevirtual

Implements Entry.

◆ isSymlink()

bool Symlink::isSymlink ( )
overridevirtual

Implements Entry.

◆ move()

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

Implements Entry.

Here is the call graph for this function:

◆ print()

void Symlink::print ( Modifier  modifier) const
overridevirtual

Implements Entry.

Here is the call graph for this function:

◆ remove()

bool Symlink::remove ( )
overridevirtual

Implements Entry.

Here is the caller graph for this function:

Member Data Documentation

◆ circular

bool Symlink::circular = false
private

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