LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FileSystem Class Referenceabstract

Base class / interface for all file system implementations. More...

#include <filesystem.h>

+ Inheritance diagram for FileSystem:
+ Collaboration diagram for FileSystem:

Public Member Functions

 FileSystem (QObject *parent=nullptr) noexcept
 
virtual ~FileSystem () noexcept
 
virtual FilePath getAbsPath (const QString &path="") const noexcept=0
 
virtual QStringList getDirs (const QString &path="") const noexcept=0
 
virtual QStringList getFiles (const QString &path="") const noexcept=0
 
virtual bool fileExists (const QString &path) const noexcept=0
 
virtual QByteArray read (const QString &path) const =0
 
virtual void write (const QString &path, const QByteArray &content)=0
 
virtual void removeFile (const QString &path)=0
 
virtual void removeDirRecursively (const QString &path="")=0
 

Detailed Description

Base class / interface for all file system implementations.

Constructor & Destructor Documentation

FileSystem ( QObject *  parent = nullptr)
inlinenoexcept
virtual ~FileSystem ( )
inlinevirtualnoexcept

Member Function Documentation

virtual FilePath getAbsPath ( const QString &  path = "") const
pure virtualnoexcept
virtual QStringList getDirs ( const QString &  path = "") const
pure virtualnoexcept
virtual QStringList getFiles ( const QString &  path = "") const
pure virtualnoexcept
virtual bool fileExists ( const QString &  path) const
pure virtualnoexcept
virtual QByteArray read ( const QString &  path) const
pure virtual
virtual void write ( const QString &  path,
const QByteArray &  content 
)
pure virtual
virtual void removeFile ( const QString &  path)
pure virtual
virtual void removeDirRecursively ( const QString &  path = "")
pure virtual

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