runMACS
 All Data Structures Files Functions Variables Enumerations Enumerator Macros
Public Member Functions
SystemHelper Class Reference

Helper class for system informations. More...

#include <SystemHelper.h>

Public Member Functions

 SystemHelper ()
 
 ~SystemHelper ()
 
DiskStatus getDiskStatus (const std::string &path) const
 Get status of the disk behind the given path. More...
 
double getDiskFreePercent (const std::string &path) const
 Get free fraction of the disk behind the given path. More...
 

Detailed Description

Helper class for system informations.

Definition at line 14 of file SystemHelper.h.

Constructor & Destructor Documentation

SystemHelper::SystemHelper ( )

Definition at line 10 of file SystemHelper.cpp.

SystemHelper::~SystemHelper ( )

Definition at line 14 of file SystemHelper.cpp.

Member Function Documentation

double SystemHelper::getDiskFreePercent ( const std::string &  path) const

Get free fraction of the disk behind the given path.

Parameters
pathPath to the folder of desire.
Returns
fraction of disk space free [0 ... 1]

Definition at line 53 of file SystemHelper.cpp.

DiskStatus SystemHelper::getDiskStatus ( const std::string &  path) const

Get status of the disk behind the given path.

Currently the status is limited to the total and free size.

Parameters
pathPath to the folder of desire.
Returns
total and free disk size

Definition at line 18 of file SystemHelper.cpp.


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