2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2006-12-01 18:35:21 +00:00
|
|
|
#ifndef cmPropertyDefinitionMap_h
|
|
|
|
#define cmPropertyDefinitionMap_h
|
|
|
|
|
2017-04-11 20:00:21 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-08-23 22:29:15 +00:00
|
|
|
|
|
|
|
#include "cmProperty.h"
|
2006-12-01 18:35:21 +00:00
|
|
|
#include "cmPropertyDefinition.h"
|
|
|
|
|
2016-08-23 22:29:15 +00:00
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2007-10-22 16:49:09 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
class cmPropertyDefinitionMap
|
|
|
|
: public std::map<std::string, cmPropertyDefinition>
|
2006-12-01 18:35:21 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// define the property
|
2014-02-10 05:21:34 +00:00
|
|
|
void DefineProperty(const std::string& name, cmProperty::ScopeType scope,
|
2016-05-16 14:34:04 +00:00
|
|
|
const char* ShortDescription,
|
|
|
|
const char* FullDescription, bool chain);
|
2006-12-01 18:35:21 +00:00
|
|
|
|
|
|
|
// has a named property been defined
|
2015-06-06 07:46:38 +00:00
|
|
|
bool IsPropertyDefined(const std::string& name) const;
|
2006-12-01 18:35:21 +00:00
|
|
|
|
|
|
|
// is a named property set to chain
|
2015-06-06 07:46:38 +00:00
|
|
|
bool IsPropertyChained(const std::string& name) const;
|
2006-12-01 18:35:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|