diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-04 00:47:44 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-04 00:47:44 (GMT) |
commit | c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7 (patch) | |
tree | 21c76e21802cf818682bdb187b2152f7e705f16f /Source/cmake.h | |
parent | 32bfe66b5d261bfc6c9f43f045f56651b8f012ea (diff) | |
download | CMake-c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7.zip CMake-c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7.tar.gz CMake-c7f1198a0062a24edf3166e5f4cfcdcbb8b556f7.tar.bz2 |
ENH: Add accessor for the list of commands
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index ccaa409..fc7b4ac 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -50,6 +50,8 @@ class cmVariableWatch; class cmake { public: + typedef std::map<cmStdString, cmCommand*> RegisteredCommandsMap; + ///! construct an instance of cmake cmake(); ///! destruct an instance of cmake @@ -193,6 +195,9 @@ class cmake */ cmCommand *GetCommand(const char *name); + /** Get list of all commands */ + RegisteredCommandsMap* GetCommands() { return &m_Commands; } + /** Check if a command exists. */ bool CommandExists(const char* name) const; @@ -242,7 +247,6 @@ class cmake protected: typedef cmGlobalGenerator* (*CreateGeneratorFunctionType)(); - typedef std::map<cmStdString, cmCommand*> RegisteredCommandsMap; typedef std::map<cmStdString, CreateGeneratorFunctionType> RegisteredGeneratorsMap; RegisteredCommandsMap m_Commands; RegisteredGeneratorsMap m_Generators; |