diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmPropertyMap.cxx | 5 | ||||
-rw-r--r-- | Source/cmPropertyMap.h | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmPropertyMap.cxx b/Source/cmPropertyMap.cxx index 0874977..64bceb5 100644 --- a/Source/cmPropertyMap.cxx +++ b/Source/cmPropertyMap.cxx @@ -36,6 +36,11 @@ void cmPropertyMap::AppendProperty(const std::string& name, const char* value, } } +void cmPropertyMap::RemoveProperty(const std::string& name) +{ + Map_.erase(name); +} + const char* cmPropertyMap::GetPropertyValue(const std::string& name) const { { diff --git a/Source/cmPropertyMap.h b/Source/cmPropertyMap.h index 165eb92..6284e8c 100644 --- a/Source/cmPropertyMap.h +++ b/Source/cmPropertyMap.h @@ -14,17 +14,25 @@ class cmPropertyMap { public: // -- General + //! Clear property list void Clear(); // -- Properties + + //! Set the property value void SetProperty(const std::string& name, const char* value); + //! Append to the property value void AppendProperty(const std::string& name, const char* value, bool asString = false); + //! Get the property value const char* GetPropertyValue(const std::string& name) const; + //! Remove the property @a name from the map + void RemoveProperty(const std::string& name); + // -- Lists //! Get a sorted list of property keys std::vector<std::string> GetKeys() const; |