diff options
author | Brad King <brad.king@kitware.com> | 2003-02-14 15:53:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-02-14 15:53:37 (GMT) |
commit | 1f55680332c133fddce4a0b85cfb7ee1a20cff75 (patch) | |
tree | 7cc80032918bf19095fe31fb7d52b29e6c1d64e8 /Source/cmake.cxx | |
parent | d9a74e1b1e18156be224697383b571ad9af4336c (diff) | |
download | CMake-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.cxx | 17 |
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); +} |