cmCLocaleEnvironmentScope.h 679 B

123456789101112131415161718192021222324252627
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCLocaleEnvironmentScope_h
  4. #define cmCLocaleEnvironmentScope_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <map>
  7. #include <string>
  8. class cmCLocaleEnvironmentScope
  9. {
  10. CM_DISABLE_COPY(cmCLocaleEnvironmentScope)
  11. public:
  12. cmCLocaleEnvironmentScope();
  13. ~cmCLocaleEnvironmentScope();
  14. private:
  15. std::string GetEnv(std::string const& key);
  16. void SetEnv(std::string const& key, std::string const& value);
  17. typedef std::map<std::string, std::string> backup_map_t;
  18. backup_map_t EnvironmentBackup;
  19. };
  20. #endif