1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmPropertyMap.h,v $
6 Date: $Date: 2008-01-17 23:13:55 $
7 Version: $Revision: 1.2 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmPropertyMap_h
18 #define cmPropertyMap_h
20 #include "cmProperty.h"
24 class cmPropertyMap
: public std::map
<cmStdString
,cmProperty
>
27 cmProperty
*GetOrCreateProperty(const char *name
);
29 void SetProperty(const char *name
, const char *value
,
30 cmProperty::ScopeType scope
);
32 void AppendProperty(const char* name
, const char* value
,
33 cmProperty::ScopeType scope
);
35 const char *GetPropertyValue(const char *name
,
36 cmProperty::ScopeType scope
,
39 void SetCMakeInstance(cmake
*cm
) { this->CMakeInstance
= cm
; };
41 cmPropertyMap() { this->CMakeInstance
= 0;};