cmake/Source/cmPropertyMap.h

32 lines
1.0 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2009-10-04 10:30:41 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2009-10-04 10:30:41 +03: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.
============================================================================*/
#ifndef cmPropertyMap_h
#define cmPropertyMap_h
#include "cmProperty.h"
2015-04-27 22:25:09 +02:00
class cmPropertyMap : public std::map<std::string,cmProperty>
{
public:
2015-04-27 22:25:09 +02:00
cmProperty *GetOrCreateProperty(const std::string& name);
2015-11-17 17:22:37 +01: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,
2015-11-17 17:22:37 +01:00
bool asString=false);
2015-11-17 17:22:37 +01:00
const char *GetPropertyValue(const std::string& name) const;
};
#endif