2009-09-28 15:43:28 +00:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2006-12-01 18:35:21 +00:00
|
|
|
|
2009-09-28 15:43:28 +00:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2006-12-01 18:35:21 +00:00
|
|
|
|
2009-09-28 15:43:28 +00:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2006-12-01 18:35:21 +00:00
|
|
|
#ifndef cmPropertyMap_h
|
|
|
|
#define cmPropertyMap_h
|
|
|
|
|
2016-08-23 22:29:15 +00:00
|
|
|
#include <cmConfigure.h> // IWYU pragma: keep
|
|
|
|
|
2006-12-01 18:35:21 +00:00
|
|
|
#include "cmProperty.h"
|
|
|
|
|
2016-08-23 22:29:15 +00:00
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
class cmPropertyMap : public std::map<std::string, cmProperty>
|
2006-12-01 18:35:21 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-05-16 14:34:04 +00:00
|
|
|
cmProperty* GetOrCreateProperty(const std::string& name);
|
2006-12-01 18:35:21 +00:00
|
|
|
|
2016-06-10 07:34:14 +00:00
|
|
|
std::vector<std::string> GetPropertyList() const;
|
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
void SetProperty(const std::string& name, const char* value);
|
2006-12-01 18:35:21 +00:00
|
|
|
|
2013-09-02 20:27:32 +00:00
|
|
|
void AppendProperty(const std::string& name, const char* value,
|
2016-05-16 14:34:04 +00:00
|
|
|
bool asString = false);
|
2008-01-17 23:13:55 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
const char* GetPropertyValue(const std::string& name) const;
|
2006-12-01 18:35:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|