mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
cmPropertyMap: Add RemoveProperty method
The new `cmPropertyMap::RemoveProperty` allows to remove a property from the map.
This commit is contained in:
parent
e0a8ff3148
commit
1b945f95ba
@ -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
|
||||
{
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user