cmPropertyDefinition.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 cmPropertyDefinition_h
  11. #define cmPropertyDefinition_h
  12. #include "cmProperty.h"
  13. class cmPropertyDefinition
  14. {
  15. public:
  16. // Define this property
  17. void DefineProperty(const char *name, cmProperty::ScopeType scope,
  18. const char *ShortDescription,
  19. const char *FullDescription,
  20. const char *DocumentationSection,
  21. bool chained);
  22. // get the documentation string
  23. cmDocumentationEntry GetDocumentation() const;
  24. // basic constructor
  25. cmPropertyDefinition() { this->Chained = false; };
  26. // is it chained?
  27. bool IsChained() {return this->Chained; };
  28. // Get the section if any
  29. const std::string &GetDocumentationSection() const {
  30. return this->DocumentationSection; };
  31. // get the scope
  32. cmProperty::ScopeType GetScope() const {
  33. return this->Scope; };
  34. // get the docs
  35. const std::string &GetShortDescription() const {
  36. return this->ShortDescription; };
  37. const std::string &GetFullDescription() const {
  38. return this->FullDescription; };
  39. protected:
  40. std::string Name;
  41. std::string ShortDescription;
  42. std::string FullDescription;
  43. std::string DocumentationSection;
  44. cmProperty::ScopeType Scope;
  45. bool Chained;
  46. };
  47. #endif