| 98 | } |
| 99 | |
| 100 | std::string SystemUtils::getMachineName() |
| 101 | { |
| 102 | auto name = safeGetEnv("COMPUTERNAME"); |
| 103 | if (!name.empty()) |
| 104 | { |
| 105 | return name; |
| 106 | } |
| 107 | |
| 108 | name = safeGetEnv("HOSTNAME"); |
| 109 | if (!name.empty()) |
| 110 | { |
| 111 | return name; |
| 112 | } |
| 113 | |
| 114 | return "Unknown Computer"; |
| 115 | } |
| 116 | |
| 117 | void SystemUtils::makeDirectoryForWindows(const std::string& directory) |
| 118 | { |
nothing calls this directly
no outgoing calls
no test coverage detected