![]() |
Muster SDK
8.0
|
#include <MDrive.h>
Public Member Functions | |
MDrive () | |
~MDrive () | |
std::string | getMountPoint () |
std::string | getName () |
unsigned long long int | getMountPointTotalSize () |
unsigned long long int | getMountPointFreeSpace () |
void | setMountPoint (const std::string &) |
void | setName (const std::string &) |
void | setMountPointTotalSize (unsigned long long int) |
void | setMountPointFreeSpace (unsigned long long int) |
bool | Unmarshall (std::vector< std::string > &items) |
bool | Unmarshall (const char *data) |
std::string | Marshall () |
Static Public Member Functions | |
static void | GetMountPaths (std::vector< MClientLib::MDrive > *) |
static std::string | MarshallDrivesList (std::vector< MClientLib::MDrive > *) |
static std::vector < MClientLib::MDrive > | UnmarshallDrivesList (const std::string &data) |
MDrive class that holds a drive status data
Holds data related to a drive on a node
MClientLib::MDrive::MDrive | ( | ) |
MClientLib::MDrive::~MDrive | ( | ) |
|
static |
std::string MClientLib::MDrive::getMountPoint | ( | ) |
unsigned long long int MClientLib::MDrive::getMountPointFreeSpace | ( | ) |
unsigned long long int MClientLib::MDrive::getMountPointTotalSize | ( | ) |
std::string MClientLib::MDrive::getName | ( | ) |
std::string MClientLib::MDrive::Marshall | ( | ) |
Encodes a chunk into a string stream
|
static |
void MClientLib::MDrive::setMountPoint | ( | const std::string & | ) |
void MClientLib::MDrive::setMountPointFreeSpace | ( | unsigned long long | int | ) |
void MClientLib::MDrive::setMountPointTotalSize | ( | unsigned long long | int | ) |
void MClientLib::MDrive::setName | ( | const std::string & | ) |
bool MClientLib::MDrive::Unmarshall | ( | std::vector< std::string > & | items | ) |
Decodes a drive from a vector of strings
bool MClientLib::MDrive::Unmarshall | ( | const char * | data | ) |
Decodes a drive from a stream.Expects an unique string separater by carriage returns as produced by Marshall()
|
static |