cppcore
A small, portable C++ core library
Loading...
Searching...
No Matches
cppcore::FileSystem Class Reference

This class provides some common OS-specific file operations. More...

#include <FileSystem.h>

Public Member Functions

 FileSystem (const char *location)
 The class constructor with the location.
 ~FileSystem ()=default
 The class destructor.
 FileSystem (const FileSystem &)=delete
 The copy constructor is not allowed.
FileSystem & operator= (const FileSystem &)=delete
void refresh ()
 Will perform a refresh.
FSSpace * getFreeDiskSpace ()
 Will return the free disk info.

Detailed Description

This class provides some common OS-specific file operations.

Definition at line 41 of file FileSystem.h.

Constructor & Destructor Documentation

◆ FileSystem() [1/2]

cppcore::FileSystem::FileSystem ( const char * location)
inlineexplicit

The class constructor with the location.

Parameters
[in]locationThe root location.

Definition at line 66 of file FileSystem.h.

Referenced by FileSystem(), and operator=().

◆ ~FileSystem()

cppcore::FileSystem::~FileSystem ( )
default

The class destructor.

◆ FileSystem() [2/2]

cppcore::FileSystem::FileSystem ( const FileSystem & )
delete

The copy constructor is not allowed.

References FileSystem().

Member Function Documentation

◆ getFreeDiskSpace()

FSSpace * cppcore::FileSystem::getFreeDiskSpace ( )
inline

Will return the free disk info.

Returns
the File-system space.

Definition at line 91 of file FileSystem.h.

References refresh().

◆ operator=()

FileSystem & cppcore::FileSystem::operator= ( const FileSystem & )
delete

References FileSystem().

◆ refresh()

void cppcore::FileSystem::refresh ( )
inline

Will perform a refresh.

Definition at line 70 of file FileSystem.h.

Referenced by getFreeDiskSpace().


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