Stroika Library 3.0d25
 
Loading...
Searching...
No Matches
Stroika::Foundation::Common::SystemConfiguration Struct Reference

What can be told of the machine this runs on - GetSystemConfiguration () gets it all, each GetSystemConfiguration_Xxx () a part. More...

#include <SystemConfiguration.h>

Classes

struct  ComputerNames
 

Public Member Functions

nonvirtual String ToString () const
 

Public Attributes

OperatingSystem fActualOperatingSystem
 
OperatingSystem fApparentOperatingSystem
 
optional< GUID > fMachineID
 

Detailed Description

What can be told of the machine this runs on - GetSystemConfiguration () gets it all, each GetSystemConfiguration_Xxx () a part.

Note
Logging it: ToString () leaves out fMachineID (saying only whether there is one), but code writing the fields out itself - a serializer, say - must leave it out too (or use GetSystemConfiguration_MachineID (applicationKey) instead). And even without it, a SystemConfiguration - its host name, operating system, CPU and so on - can identify the machine: mind where it is written.

Definition at line 44 of file SystemConfiguration.h.

Member Function Documentation

◆ ToString()

String SystemConfiguration::ToString ( ) const
Note
Leaves out fMachineID - saying only whether there is one - so tracing a whole SystemConfiguration is safe. How to keep it (and other identifying data) out of logs and serialized copies more generally: https://github.com/SophistSolutions/Stroika/issues/1196
See also
Characters::ToString ();

Definition at line 169 of file SystemConfiguration.cpp.

Member Data Documentation

◆ fActualOperatingSystem

OperatingSystem Stroika::Foundation::Common::SystemConfiguration::fActualOperatingSystem

Info about the actual operating system this software is running on (if possible to tell, it could be well hidden)

Often virtualization (things like compatibility mode in a manifest, or perhaps docker, or WSL) makes the apparent operating system different than the one you are actually running on).

Note
Actual Operating System is typically what you would report to a user (GUI).

Definition at line 253 of file SystemConfiguration.h.

◆ fApparentOperatingSystem

OperatingSystem Stroika::Foundation::Common::SystemConfiguration::fApparentOperatingSystem

Return info about the apparent operating system this software is running on.

Often virtualization (things like compatibility mode in a manifest, or perhaps docker, or WSL) makes the apparent operating system different than the one you are actually running on).

Definition at line 261 of file SystemConfiguration.h.

◆ fMachineID

optional<GUID> Stroika::Foundation::Common::SystemConfiguration::fMachineID

The OS's own ID for this machine -

See also
GetSystemConfiguration_MachineID (). Confidential, so ToString () says only whether there is one (
SystemConfiguration's note on logging it).

Definition at line 268 of file SystemConfiguration.h.


The documentation for this struct was generated from the following files: