summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCommand.h6
-rw-r--r--Source/cmConfigureFileCommand.h2
-rw-r--r--Source/cmFLTKWrapUICommand.h2
-rw-r--r--Source/cmQTWrapCPPCommand.h2
-rw-r--r--Source/cmQTWrapUICommand.h1
-rw-r--r--Source/cmUseMangledMesaCommand.h2
-rw-r--r--Source/cmVTKWrapJavaCommand.h2
-rw-r--r--Source/cmVTKWrapPythonCommand.h2
-rw-r--r--Source/cmVTKWrapTclCommand.h2
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.
*/