diff options
author | Brad King <brad.king@kitware.com> | 2001-05-01 21:37:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-05-01 21:37:45 (GMT) |
commit | 1d4a3aa48e8781f1252a98b59a0736336a4f54bd (patch) | |
tree | 00a8bc4e030cf9cf0d5b3d7e4aba47574a9ff904 /Source/cmCableDefineSetCommand.cxx | |
parent | 45e9d19c6c456024f6cef663e29447bfae148fff (diff) | |
download | CMake-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.cxx')
-rw-r--r-- | Source/cmCableDefineSetCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCableDefineSetCommand.cxx b/Source/cmCableDefineSetCommand.cxx index 7d5a35c..f7552b6 100644 --- a/Source/cmCableDefineSetCommand.cxx +++ b/Source/cmCableDefineSetCommand.cxx @@ -103,7 +103,7 @@ void cmCableDefineSetCommand::WriteConfiguration() const cmCableData::Indentation indent = m_CableData->GetIndentation(); // Output the code. - os << indent << "<Set name=\"" << m_SetName.c_str() << "\">" << std::endl; + os << indent << "<" << this->GetXmlTag() << " name=\"" << m_SetName.c_str() << "\">" << std::endl; for(std::vector<std::string>::const_iterator e = m_SourceHeaders.begin(); e != m_SourceHeaders.end(); ++e) { @@ -135,7 +135,7 @@ void cmCableDefineSetCommand::WriteConfiguration() const } os << "</Element>" << std::endl; } - os << indent << "</Set>" << std::endl; + os << indent << "</" << this->GetXmlTag() << ">" << std::endl; } |