summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-16 18:05:22 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-16 18:05:22 (GMT)
commit4c658a5bc5c5e763df54a9a23f41d2cc71345345 (patch)
treecf493f504549c28fac5deb7cb93d259dd9c41095 /Source/cmCommand.h
parentbb6203f9708fc107f73d5dbaa1ff014cb6eb13dd (diff)
downloadCMake-4c658a5bc5c5e763df54a9a23f41d2cc71345345.zip
CMake-4c658a5bc5c5e763df54a9a23f41d2cc71345345.tar.gz
CMake-4c658a5bc5c5e763df54a9a23f41d2cc71345345.tar.bz2
ENH: Add classname to commands
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r--Source/cmCommand.h6
1 files changed, 6 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) \
{ \