diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-16 18:05:22 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-06-16 18:05:22 (GMT) |
commit | 4c658a5bc5c5e763df54a9a23f41d2cc71345345 (patch) | |
tree | cf493f504549c28fac5deb7cb93d259dd9c41095 /Source | |
parent | bb6203f9708fc107f73d5dbaa1ff014cb6eb13dd (diff) | |
download | CMake-4c658a5bc5c5e763df54a9a23f41d2cc71345345.zip CMake-4c658a5bc5c5e763df54a9a23f41d2cc71345345.tar.gz CMake-4c658a5bc5c5e763df54a9a23f41d2cc71345345.tar.bz2 |
ENH: Add classname to commands
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCommand.h | 6 | ||||
-rw-r--r-- | Source/cmConfigureFileCommand.h | 2 | ||||
-rw-r--r-- | Source/cmFLTKWrapUICommand.h | 2 | ||||
-rw-r--r-- | Source/cmQTWrapCPPCommand.h | 2 | ||||
-rw-r--r-- | Source/cmQTWrapUICommand.h | 1 | ||||
-rw-r--r-- | Source/cmUseMangledMesaCommand.h | 2 | ||||
-rw-r--r-- | Source/cmVTKWrapJavaCommand.h | 2 | ||||
-rw-r--r-- | Source/cmVTKWrapPythonCommand.h | 2 | ||||
-rw-r--r-- | Source/cmVTKWrapTclCommand.h | 2 |
9 files changed, 21 insertions, 0 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h index cb8c9e2..cd6b620 100644 --- a/Source/cmCommand.h +++ b/Source/cmCommand.h @@ -104,6 +104,11 @@ public: virtual const char* GetName() = 0; /** + * The class name of the command. + */ + virtual const char* GetClassName() = 0; + + /** * Succinct documentation. */ virtual const char* GetTerseDocumentation() = 0; @@ -183,6 +188,7 @@ private: // All subclasses of cmCommand should invoke this macro. #define cmTypeMacro(thisClass,superclass) \ +virtual const char* GetClassName() { return #thisClass; } \ typedef superclass Superclass; \ static bool IsTypeOf(const char *type) \ { \ diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h index f857c86..ce8fda2 100644 --- a/Source/cmConfigureFileCommand.h +++ b/Source/cmConfigureFileCommand.h @@ -22,6 +22,8 @@ class cmConfigureFileCommand : public cmCommand { public: + cmTypeMacro(cmConfigureFileCommand, cmCommand); + virtual cmCommand* Clone() { return new cmConfigureFileCommand; diff --git a/Source/cmFLTKWrapUICommand.h b/Source/cmFLTKWrapUICommand.h index 2f9daa7..690380f 100644 --- a/Source/cmFLTKWrapUICommand.h +++ b/Source/cmFLTKWrapUICommand.h @@ -27,6 +27,8 @@ class cmFLTKWrapUICommand : public cmCommand { public: + cmTypeMacro(cmFLTKWrapUICommand, cmCommand); + /** * This is a virtual constructor for the command. */ diff --git a/Source/cmQTWrapCPPCommand.h b/Source/cmQTWrapCPPCommand.h index fd2e88c..8b6f9df 100644 --- a/Source/cmQTWrapCPPCommand.h +++ b/Source/cmQTWrapCPPCommand.h @@ -29,6 +29,8 @@ class cmQTWrapCPPCommand : public cmCommand { public: + cmTypeMacro(cmQTWrapCPPCommand, cmCommand); + /** * This is a virtual constructor for the command. */ diff --git a/Source/cmQTWrapUICommand.h b/Source/cmQTWrapUICommand.h index cf0046d..ecfdaa7 100644 --- a/Source/cmQTWrapUICommand.h +++ b/Source/cmQTWrapUICommand.h @@ -29,6 +29,7 @@ class cmQTWrapUICommand : public cmCommand { public: + cmTypeMacro(cmQTWrapUICommand, cmCommand); /** * This is a virtual constructor for the command. */ diff --git a/Source/cmUseMangledMesaCommand.h b/Source/cmUseMangledMesaCommand.h index 53223cf..83d4e96 100644 --- a/Source/cmUseMangledMesaCommand.h +++ b/Source/cmUseMangledMesaCommand.h @@ -30,6 +30,8 @@ class cmUseMangledMesaCommand : public cmCommand { public: + cmTypeMacro(cmUseMangledMesaCommand, cmCommand); + /** * This is a virtual constructor for the command. */ diff --git a/Source/cmVTKWrapJavaCommand.h b/Source/cmVTKWrapJavaCommand.h index 1702eb6..66de7ca 100644 --- a/Source/cmVTKWrapJavaCommand.h +++ b/Source/cmVTKWrapJavaCommand.h @@ -29,6 +29,8 @@ class cmVTKWrapJavaCommand : public cmCommand { public: + cmTypeMacro(cmVTKWrapJavaCommand, cmCommand); + /** * This is a virtual constructor for the command. */ diff --git a/Source/cmVTKWrapPythonCommand.h b/Source/cmVTKWrapPythonCommand.h index ed9cf03..1ffe139 100644 --- a/Source/cmVTKWrapPythonCommand.h +++ b/Source/cmVTKWrapPythonCommand.h @@ -29,6 +29,8 @@ class cmVTKWrapPythonCommand : public cmCommand { public: + cmTypeMacro(cmVTKWrapPythonCommand, cmCommand); + /** * This is a virtual constructor for the command. */ diff --git a/Source/cmVTKWrapTclCommand.h b/Source/cmVTKWrapTclCommand.h index 06d497d..610fee1 100644 --- a/Source/cmVTKWrapTclCommand.h +++ b/Source/cmVTKWrapTclCommand.h @@ -30,6 +30,8 @@ class cmVTKWrapTclCommand : public cmCommand { public: + cmTypeMacro(cmVTKWrapTclCommand, cmCommand); + /** * This is a virtual constructor for the command. */ |