Functions | |
uint32_t | getUID () |
Gets the user ID of the current process. | |
uint32_t | getPID () |
Gets the process ID of the current process. | |
uint32_t | getParentPID () |
Gets the parent process ID of the current process. | |
std::string | getCurrentUserName () |
Gets the current user's name. | |
std::string | getFilePathForPID (uint32_t pid) |
Gets the file path for a given process ID. | |
std::string | getCurrentProcessFullPath () |
Gets the full path of the current process. | |
std::string | getCurrentCommandLineContent () |
Gets the command line content of the current process. | |
std::string | getProcessName (uint32_t pid) |
Gets the name of a process given its process ID. | |
std::string | invokeCommandLineCommand (const std::string &cmdString, int *returnStatus=nullptr) |
Invokes a command line command and returns its output. | |
std::string | getKernelVersion () |
Gets the kernel version of the operating system. | |
uint8_t | getCPUNumber () |
Gets the number of CPU cores. | |
uint64_t | getSystemFreeMemory () |
Gets the amount of free memory in the system. | |
void | openURLWithDefaultBrowser (const std::string &url) |
Opens a URL with the default web browser. | |
uint8_t SystemTools::Shared::getCPUNumber | ( | ) |
Gets the number of CPU cores.
std::string SystemTools::Shared::getCurrentCommandLineContent | ( | ) |
Gets the command line content of the current process.
std::string SystemTools::Shared::getCurrentProcessFullPath | ( | ) |
Gets the full path of the current process.
std::string SystemTools::Shared::getCurrentUserName | ( | ) |
Gets the current user's name.
std::string SystemTools::Shared::getFilePathForPID | ( | uint32_t | pid | ) |
Gets the file path for a given process ID.
pid | The process ID. |
std::string SystemTools::Shared::getKernelVersion | ( | ) |
Gets the kernel version of the operating system.
uint32_t SystemTools::Shared::getParentPID | ( | ) |
Gets the parent process ID of the current process.
uint32_t SystemTools::Shared::getPID | ( | ) |
Gets the process ID of the current process.
std::string SystemTools::Shared::getProcessName | ( | uint32_t | pid | ) |
Gets the name of a process given its process ID.
pid | The process ID. |
uint64_t SystemTools::Shared::getSystemFreeMemory | ( | ) |
Gets the amount of free memory in the system.
uint32_t SystemTools::Shared::getUID | ( | ) |
Gets the user ID of the current process.
std::string SystemTools::Shared::invokeCommandLineCommand | ( | const std::string & | cmdString, |
int * | returnStatus = nullptr |
||
) |
Invokes a command line command and returns its output.
cmdString | The command to execute. |
returnStatus | Optional pointer to store the return status. |
void SystemTools::Shared::openURLWithDefaultBrowser | ( | const std::string & | url | ) |
Opens a URL with the default web browser.
url | The URL to open. |