runMACS
 All Data Structures Files Functions Variables Enumerations Enumerator Macros
SystemHelper.h
Go to the documentation of this file.
1 #ifndef SYSTEM_HELPER_H
2 #define SYSTEM_HELPER_H
3 
4 #include <string>
5 
6 typedef struct {
7  unsigned long long totalSize;
8  unsigned long long freeSize;
9 } DiskStatus;
10 
14 class SystemHelper {
15 public:
16  SystemHelper();
17  ~SystemHelper();
18 
26  DiskStatus getDiskStatus(const std::string & path) const;
27 
34  double getDiskFreePercent(const std::string & path) const;
35 };
36 
37 #endif /* SYSTEM_HELPER_H */
Helper class for system informations.
Definition: SystemHelper.h:14
unsigned long long freeSize
Definition: SystemHelper.h:8
unsigned long long totalSize
Definition: SystemHelper.h:7
DiskStatus getDiskStatus(const std::string &path) const
Get status of the disk behind the given path.
double getDiskFreePercent(const std::string &path) const
Get free fraction of the disk behind the given path.