cmPropertyMap.h 760 B

1234567891011121314151617181920212223242526272829
  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 cmPropertyMap_h
  4. #define cmPropertyMap_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmProperty.h"
  7. #include <map>
  8. #include <string>
  9. #include <vector>
  10. class cmPropertyMap : public std::map<std::string, cmProperty>
  11. {
  12. public:
  13. cmProperty* GetOrCreateProperty(const std::string& name);
  14. std::vector<std::string> GetPropertyList() const;
  15. void SetProperty(const std::string& name, const char* value);
  16. void AppendProperty(const std::string& name, const char* value,
  17. bool asString = false);
  18. const char* GetPropertyValue(const std::string& name) const;
  19. };
  20. #endif