From 6cdf03250568c2150094cddfb6542945903b41a1 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 22 Oct 2007 12:49:09 -0400 Subject: ENH: change to make the documentation class more generic, about halfway there, also provides secitons for Variables now --- Source/cmPropertyDefinition.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/cmPropertyDefinition.h') diff --git a/Source/cmPropertyDefinition.h b/Source/cmPropertyDefinition.h index df7aa4bb19..a299cb3da3 100644 --- a/Source/cmPropertyDefinition.h +++ b/Source/cmPropertyDefinition.h @@ -26,6 +26,7 @@ public: void DefineProperty(const char *name, cmProperty::ScopeType scope, const char *ShortDescription, const char *FullDescription, + const char *DocumentationSection, bool chained); // get the documentation string @@ -37,10 +38,19 @@ public: // is it chained? bool IsChained() {return this->Chained; }; + // Get the section if any + const std::string &GetDocumentationSection() const { + return this->DocumentationSection; }; + + // get the scope + cmProperty::ScopeType GetScope() const { + return this->Scope; }; + protected: std::string Name; std::string ShortDescription; std::string FullDescription; + std::string DocumentationSection; cmProperty::ScopeType Scope; bool Chained; }; -- cgit v1.2.1