cmPropertyDefinitionMap.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmPropertyDefinitionMap_h
  11. #define cmPropertyDefinitionMap_h
  12. #include "cmPropertyDefinition.h"
  13. class cmDocumentationSection;
  14. class cmPropertyDefinitionMap :
  15. public std::map<cmStdString,cmPropertyDefinition>
  16. {
  17. public:
  18. // define the property
  19. void DefineProperty(const char *name, cmProperty::ScopeType scope,
  20. const char *ShortDescription,
  21. const char *FullDescription,
  22. bool chain);
  23. // has a named property been defined
  24. bool IsPropertyDefined(const char *name);
  25. // is a named property set to chain
  26. bool IsPropertyChained(const char *name);
  27. };
  28. #endif