summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-02-14 15:53:37 (GMT)
committerBrad King <brad.king@kitware.com>2003-02-14 15:53:37 (GMT)
commit1f55680332c133fddce4a0b85cfb7ee1a20cff75 (patch)
tree7cc80032918bf19095fe31fb7d52b29e6c1d64e8 /Source/cmake.cxx
parentd9a74e1b1e18156be224697383b571ad9af4336c (diff)
downloadCMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.zip
CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.tar.gz
CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.tar.bz2
ENH: Added cmDocumentation class to generate various forms of documentation. Each executable will be able to generate its own documentation.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index aa5984b..0dad7cf 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1120,3 +1120,20 @@ void cmake::UpdateProgress(const char *msg, float prog)
return;
}
}
+
+void cmake::GetCommandDocumentation(std::vector<cmDocumentationEntry>& v) const
+{
+ for(RegisteredCommandsMap::const_iterator j = m_Commands.begin();
+ j != m_Commands.end(); ++j)
+ {
+ cmDocumentationEntry e =
+ {
+ (*j).second->GetName(),
+ (*j).second->GetTerseDocumentation(),
+ (*j).second->GetFullDocumentation()
+ };
+ v.push_back(e);
+ }
+ cmDocumentationEntry empty = {0,0,0};
+ v.push_back(empty);
+}