summaryrefslogtreecommitdiffstats
path: root/Source/cmPropertyMap.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-06-03 07:19:58 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-06-08 10:25:35 (GMT)
commit1b945f95bafc9a795b092904f7c6bd84dad940e8 (patch)
tree590ce44102cf9db8581d1f4eb99678f80a5638c4 /Source/cmPropertyMap.h
parente0a8ff31480df672e42e2382e8ed7f33ea65afb4 (diff)
downloadCMake-1b945f95bafc9a795b092904f7c6bd84dad940e8.zip
CMake-1b945f95bafc9a795b092904f7c6bd84dad940e8.tar.gz
CMake-1b945f95bafc9a795b092904f7c6bd84dad940e8.tar.bz2
cmPropertyMap: Add RemoveProperty method
The new `cmPropertyMap::RemoveProperty` allows to remove a property from the map.
Diffstat (limited to 'Source/cmPropertyMap.h')
-rw-r--r--Source/cmPropertyMap.h8
1 files changed, 8 insertions, 0 deletions
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;