ATLAS Offline Software
XmlHeader.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #include "XmlHeader.h"
13 #include <ostream>
14 
15 namespace SCT_CalibAlgs {
16 XmlHeader::XmlHeader(std::ostream& output): m_os(output) {
17  m_os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n";
18 }
19 
20 void
21 XmlHeader::addStylesheet(const std::string& stylesheetPath) {
22  m_os << std::string{"<?xml-stylesheet type=\"text/xsl\" href=\""} + stylesheetPath + std::string{"\"?>\n"};
23 }
24 
25 }
SCT_CalibAlgs
Definition: IElementStreamer.cxx:13
SCT_CalibAlgs::XmlHeader::m_os
std::ostream & m_os
Definition: XmlHeader.h:24
merge.output
output
Definition: merge.py:17
SCT_CalibAlgs::XmlHeader::addStylesheet
void addStylesheet(const std::string &stylesheetPath)
Definition: XmlHeader.cxx:21
SCT_CalibAlgs::XmlHeader::XmlHeader
XmlHeader(std::ostream &output)
Definition: XmlHeader.cxx:16
XmlHeader.h