cmPropertyDefinitionMap.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmPropertyDefinitionMap_h
  14. #define cmPropertyDefinitionMap_h
  15. #include "cmPropertyDefinition.h"
  16. class cmPropertyDefinitionMap :
  17. public std::map<cmStdString,cmPropertyDefinition>
  18. {
  19. public:
  20. // define the property
  21. void DefineProperty(const char *name, cmProperty::ScopeType scope,
  22. const char *ShortDescription,
  23. const char *FullDescription,
  24. bool chain);
  25. // has a named property been defined
  26. bool IsPropertyDefined(const char *name);
  27. // is a named property set to chain
  28. bool IsPropertyChained(const char *name);
  29. void GetPropertiesDocumentation(std::vector<cmDocumentationEntry>& v) const;
  30. };
  31. #endif