xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
environment_variable_target.h
Go to the documentation of this file.
1 #pragma once
5 #include "ustring.h"
6 
8 namespace xtd {
17  process = 0,
19  user = 1,
21  machine = 2,
22  };
23 
24  inline std::ostream& operator<<(std::ostream& os, environment_variable_target value) {return os << to_string(value, {{environment_variable_target::process, "process"}, {environment_variable_target::user, "user"}, {environment_variable_target::machine, "machine"}});}
25  inline std::wostream& operator<<(std::wostream& os, environment_variable_target value) {return os << to_string(value, {{environment_variable_target::process, L"process"}, {environment_variable_target::user, L"user"}, {environment_variable_target::machine, L"machine"}});}
26 }
environment_variable_target
Specifies the location where an environment variable is stored or retrieved in a set or get operation...
Definition: environment_variable_target.h:15
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
@ machine
The environment variable is stored or retrieved from the HKEY_LOCAL_MACHINE\System\CurrentControlSet\...
@ process
The environment variable is stored or retrieved from the environment block associated with the curren...
@ user
The environment variable is stored or retrieved from the HKEY_CURRENT_USER\Environment key in the Win...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.