11 #if defined (COSMOS_WIN_OS) 16 #include <sys/statvfs.h> 17 #include <sys/types.h> 18 #include <sys/sysinfo.h> 23 #if defined(COSMOS_MAC_OS) 25 #include <sys/ioctl.h> 30 static const double GiB = 1024. * 1024. * 1024.;
53 double getAll(
string path);
70 #endif // DEVICEDISK_H double getSizeGiB()
Definition: devicedisk.cpp:110
static const double GiB
Definition: devicedisk.h:30
uint64_t getUsed()
Definition: devicedisk.cpp:116
Data Management header file.
double getAll()
Definition: devicedisk.cpp:9
string mount
Definition: devicedisk.h:45
uint64_t used
Definition: devicedisk.h:47
double SizeGiB
Definition: devicedisk.h:38
double FreeGiB
Definition: devicedisk.h:40
Headers and definitions common to all COSMOS.
DeviceDisk()
Definition: devicedisk.cpp:3
double getFreeGiB()
Definition: devicedisk.cpp:173
uint64_t size
Definition: devicedisk.h:46
uint64_t Size
Definition: devicedisk.h:35
uint64_t Free
Definition: devicedisk.h:37
double FreePercent
Definition: devicedisk.h:41
Definition: devicedisk.h:32
stringlib include file A library providing functions for handling various types of string...
uint64_t getFree()
Definition: devicedisk.cpp:147
vector< info > getInfo()
Definition: devicedisk.cpp:179
uint64_t free
Definition: devicedisk.h:48
uint64_t getSize()
Definition: devicedisk.cpp:85
double getUsedGiB()
Definition: devicedisk.cpp:140
uint64_t Used
Definition: devicedisk.h:36
Definition: devicedisk.h:43
double UsedGiB
Definition: devicedisk.h:39