cmake/Source/cmPropertyMap.h

30 lines
760 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmPropertyMap_h
#define cmPropertyMap_h
2016-10-30 18:24:19 +01:00
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmProperty.h"
2016-10-30 18:24:19 +01:00
#include <map>
#include <string>
#include <vector>
2016-07-09 11:21:54 +02:00
class cmPropertyMap : public std::map<std::string, cmProperty>
{
public:
2016-07-09 11:21:54 +02:00
cmProperty* GetOrCreateProperty(const std::string& name);
2016-10-30 18:24:19 +01:00
std::vector<std::string> GetPropertyList() const;
2016-07-09 11:21:54 +02:00
void SetProperty(const std::string& name, const char* value);
2015-04-27 22:25:09 +02:00
void AppendProperty(const std::string& name, const char* value,
2016-07-09 11:21:54 +02:00
bool asString = false);
2016-07-09 11:21:54 +02:00
const char* GetPropertyValue(const std::string& name) const;
};
#endif