2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2015-04-09 18:56:43 +00:00
|
|
|
#ifndef cmCLocaleEnvironmentScope_h
|
|
|
|
#define cmCLocaleEnvironmentScope_h
|
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-08-17 22:24:24 +00:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2015-04-09 18:56:43 +00:00
|
|
|
|
|
|
|
class cmCLocaleEnvironmentScope
|
|
|
|
{
|
2017-04-23 20:50:47 +00:00
|
|
|
CM_DISABLE_COPY(cmCLocaleEnvironmentScope)
|
|
|
|
|
2015-04-09 18:56:43 +00:00
|
|
|
public:
|
|
|
|
cmCLocaleEnvironmentScope();
|
|
|
|
~cmCLocaleEnvironmentScope();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string GetEnv(std::string const& key);
|
|
|
|
void SetEnv(std::string const& key, std::string const& value);
|
|
|
|
|
|
|
|
typedef std::map<std::string, std::string> backup_map_t;
|
|
|
|
backup_map_t EnvironmentBackup;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|