summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
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) \
{ \