KWSys Nightly Date Stamp
[cmake.git] / Source / cmPropertyMap.h
blobcfbbc1166e6d64ba25a1c0630e4084bc768e9d96
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmPropertyMap.h,v $
5 Language: C++
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"
22 class cmake;
24 class cmPropertyMap : public std::map<cmStdString,cmProperty>
26 public:
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,
37 bool &chain) const;
39 void SetCMakeInstance(cmake *cm) { this->CMakeInstance = cm; };
41 cmPropertyMap() { this->CMakeInstance = 0;};
43 private:
44 cmake *CMakeInstance;
47 #endif