summaryrefslogtreecommitdiff
path: root/Source/cmDocumentationFormatter.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-10-22 12:49:09 -0400
committerKen Martin <ken.martin@kitware.com>2007-10-22 12:49:09 -0400
commit6cdf03250568c2150094cddfb6542945903b41a1 (patch)
treed2180686ef12105d6855203eded0505775b507ab /Source/cmDocumentationFormatter.h
parentcfb84d8562646662cfee9622f657e8eacdd49f8c (diff)
downloadcmake-6cdf03250568c2150094cddfb6542945903b41a1.tar.gz
ENH: change to make the documentation class more generic, about halfway there, also provides secitons for Variables now
Diffstat (limited to 'Source/cmDocumentationFormatter.h')
-rw-r--r--Source/cmDocumentationFormatter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h
index c0bc6462bd..8ffd0649d5 100644
--- a/Source/cmDocumentationFormatter.h
+++ b/Source/cmDocumentationFormatter.h
@@ -39,6 +39,8 @@ public:
enum Form { TextForm, HTMLForm, ManForm, UsageForm };
};
+class cmDocumentationSection;
+
/** Base class for printing the documentation in the various supported
formats. */
class cmDocumentationFormatter
@@ -53,7 +55,7 @@ public:
virtual void PrintHeader(const char* /*name*/, std::ostream& /*os*/) {}
virtual void PrintFooter(std::ostream& /*os*/) {}
virtual void PrintSection(std::ostream& os,
- const cmDocumentationEntry* section,
+ const cmDocumentationSection& section,
const char* name) = 0;
virtual void PrintPreformatted(std::ostream& os, const char* text) = 0;
virtual void PrintParagraph(std::ostream& os, const char* text) = 0;