summaryrefslogtreecommitdiffstats
path: root/Source/cmCableInstantiateClassCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-01 21:47:05 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-01 21:47:05 (GMT)
commitdc72655414eb8a611524b6480dad92d46b08fecb (patch)
treeeae01169b53d5e67156e5562ed53b4e447947658 /Source/cmCableInstantiateClassCommand.cxx
parentaf30fe67458fd26054696ce018f7ae6faaebcca4 (diff)
downloadCMake-dc72655414eb8a611524b6480dad92d46b08fecb.zip
CMake-dc72655414eb8a611524b6480dad92d46b08fecb.tar.gz
CMake-dc72655414eb8a611524b6480dad92d46b08fecb.tar.bz2
ENH: Change to new CABLE command architecture. CABLE configuration code is now generated on the first pass, during the Invoke() calls.
Diffstat (limited to 'Source/cmCableInstantiateClassCommand.cxx')
-rw-r--r--Source/cmCableInstantiateClassCommand.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/cmCableInstantiateClassCommand.cxx b/Source/cmCableInstantiateClassCommand.cxx
index ba1f364..939f530 100644
--- a/Source/cmCableInstantiateClassCommand.cxx
+++ b/Source/cmCableInstantiateClassCommand.cxx
@@ -23,16 +23,18 @@
* Write the CABLE configuration code to define this InstantiationSet.
* This includes the "class" keyword to do class template instantiations.
*/
-void cmCableInstantiateClassCommand::WriteConfiguration(std::ostream& os) const
+void cmCableInstantiateClassCommand::WriteConfiguration() const
{
+ std::ostream& os = m_CableData->GetOutputStream();
+ cmCableData::Indentation indent = m_CableData->GetIndentation();
+
cmRegularExpression needCdataBlock("[&<>]");
- os << std::endl
- << " <InstantiationSet>" << std::endl;
- for(Elements::const_iterator e = m_Elements.begin();
- e != m_Elements.end(); ++e)
+ os << indent << "<InstantiationSet>" << std::endl;
+ for(Entries::const_iterator e = m_Entries.begin();
+ e != m_Entries.end(); ++e)
{
- os << " <Element>class ";
+ os << indent << " <Element>class ";
if(needCdataBlock.find(e->c_str()))
{
os << "<![CDATA[" << e->c_str() << "]]>";
@@ -43,5 +45,5 @@ void cmCableInstantiateClassCommand::WriteConfiguration(std::ostream& os) const
}
os << "</Element>" << std::endl;
}
- os << " </InstantiationSet>" << std::endl;
+ os << indent << "</InstantiationSet>" << std::endl;
}