Identity and capacity of this machine. More...
Classes | |
| class | CPU |
| Native CPU queries for this machine, not a cached snapshot. More... | |
| class | Motherboard |
| Native motherboard queries, without requiring external commands. More... | |
Enumerations | |
| enum class | Error { Success = 0 , Failed , NotSupported , Unavailable , Permission } |
| Host enumerators. More... | |
Functions | |
| StormByte::Error::Fault | LastError () noexcept |
| Last Host error on this thread. | |
| bool | Name (StormByte::Safe::String &name) |
| Host name of this machine. | |
| StormByte::Safe::String | OS () |
| Operating system brand and version. | |
| StormByte::Safe::String | Kernel () |
| Kernel identification. | |
| StormByte::ByteSize | PageSize () |
| System page size. | |
| StormByte::ByteSize | PhysicalMemory () |
| Installed physical memory. | |
| StormByte::ByteSize | AvailableMemory () |
| Currently available physical memory. | |
Identity and capacity of this machine.
Name returns true on success. Queries return a value and update StormByte::System::Host::LastError, except StormByte::System::Host::CPU::Bitness. On failure strings are empty, sizes and counts are zero. CPU and Motherboard are stateless query objects: construction performs no I/O; each accessor probes the host.
|
strong |
Host enumerators.
Domain tag StormByte.System.Host. Zero is success.
| StormByte::ByteSize StormByte::System::Host::AvailableMemory | ( | ) |
Currently available physical memory.
| StormByte::Safe::String StormByte::System::Host::Kernel | ( | ) |
Kernel identification.
|
noexcept |
| bool StormByte::System::Host::Name | ( | StormByte::Safe::String & | name | ) |
Host name of this machine.
| [out] | name | Owned UTF-8 text. Written only on success. |
| StormByte::Safe::String StormByte::System::Host::OS | ( | ) |
Operating system brand and version.
| StormByte::ByteSize StormByte::System::Host::PageSize | ( | ) |
System page size.
| StormByte::ByteSize StormByte::System::Host::PhysicalMemory | ( | ) |
Installed physical memory.