summaryrefslogtreecommitdiffstats
path: root/Source/cmCableDefineSetCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-01 21:37:45 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-01 21:37:45 (GMT)
commit1d4a3aa48e8781f1252a98b59a0736336a4f54bd (patch)
tree00a8bc4e030cf9cf0d5b3d7e4aba47574a9ff904 /Source/cmCableDefineSetCommand.h
parent45e9d19c6c456024f6cef663e29447bfae148fff (diff)
downloadCMake-1d4a3aa48e8781f1252a98b59a0736336a4f54bd.zip
CMake-1d4a3aa48e8781f1252a98b59a0736336a4f54bd.tar.gz
CMake-1d4a3aa48e8781f1252a98b59a0736336a4f54bd.tar.bz2
ENH: Changed cmCableWrapCommand to inherit from cmCableDefineSetCommand since they do almost exactly the same thing. Added a GetXmlTag virtual function to both classes to return what XML tag to generate in the set's output. cmCableDefineSetCommand generates a "Set" tag, and cmCableWrapCommand generates a "WrapperSet" tag. What is inside the tags is still generated by the cmCableDefineSetCommand superclass.
Diffstat (limited to 'Source/cmCableDefineSetCommand.h')
-rw-r--r--Source/cmCableDefineSetCommand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCableDefineSetCommand.h b/Source/cmCableDefineSetCommand.h
index 3b0d200..6b37e56 100644
--- a/Source/cmCableDefineSetCommand.h
+++ b/Source/cmCableDefineSetCommand.h
@@ -106,7 +106,8 @@ public:
cmTypeMacro(cmCableDefineSetCommand, cmCableCommand);
-private:
+protected:
+ virtual const char* GetXmlTag() const { return "Set"; }
void WriteConfiguration() const;
bool AddElement(const std::string&);
bool GenerateTag(const std::string&, std::string&);