Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
system.cpp File Reference
#include "system.hpp"
#include "core/CSystem.hpp"
#include "core/Timestamp.hpp"
#include "core/exception.hpp"
#include "core/parsers.hpp"
#include "utils/stringUtils.hpp"
#include <algorithm>
#include <array>
#include <dirent.h>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <pwd.h>
#include <regex>
#include <sys/reboot.h>
#include <unistd.h>
Include dependency graph for system.cpp:

Namespaces

namespace  iv
 
namespace  iv::system
 

Functions

int iv::system::countProcesses (std::string_view processName)
 
std::string iv::system::executeCommand (const std::string &command, int *exitCode)
 Executes a command and obtains the stdout.
 
std::optional< std::string_view > iv::system::getEnv (const std::string_view variable)
 
void iv::system::reboot ()
 Begin a reboot process.
 
std::string iv::system::retrieveExecutablePath ()
 Retrieve the path of the current executable.
 
std::string iv::system::retrieveHomeDirectory ()
 Retrieve the home directory path.
 
std::string iv::system::retrieveHostName ()
 Retrieve the hostname.
 
std::vector< std::string > iv::system::retrieveAllMountedExternalDevices ()
 Retrieve all mounted external devices.
 
std::vector< std::string > iv::system::retrieveMacAddresses ()
 Retrieve the MAC addresses of the network interfaces.
 
std::string iv::system::retrieveMediaDirectory ()
 Returns the media folder directory.
 
std::string iv::system::retrieveUserName ()
 Get username.
 
bool iv::system::shutdown ()
 Begin a shutdown process.
 
std::string iv::system::retrieveHardDiskSerialNumber ()
 
static void iv::system::prvGetCpuInfo (uint32_t *p, uint32_t ax)
 
std::string iv::system::retrieveCpuSerial ()
 
std::string iv::system::retrieveRootFilesystemId ()
 
static void iv::system::native_cpuid (uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx)
 
std::string iv::system::retrieveBiosInfo ()
 
void iv::system::retrieveCpuInfo (std::string *stepping, std::string *model, std::string *family, std::string *processorType, std::string *extendedModel, std::string *extendendFamily)
 
void iv::system::setSystemTime (iv::types::timestamp time)
 
std::string iv::system::retrieveSystemVolumeControl ()
 
double iv::system::retrieveSystemVolume ()
 Get the system volume.
 
void iv::system::setSystemVolume (const double volume)
 Set the system volume.
 
double iv::system::retrieveSystemBrightness ()
 Get the system brightness.
 
void iv::system::setSystemBrightness (double brightness)
 Set the system brightness.