ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12#include "XmlHeader.h"
13#include <ostream>
14
15namespace SCT_CalibAlgs {
16XmlHeader::XmlHeader(std::ostream& output): m_os(output) {
17 m_os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?> \n";
18}
19
20void
21XmlHeader::addStylesheet(const std::string& stylesheetPath) {
22 m_os << std::string{"<?xml-stylesheet type=\"text/xsl\" href=\""} + stylesheetPath + std::string{"\"?>\n"};
23}
24
25}
header file for the XmlHeader class
XmlHeader(std::ostream &output)
Definition XmlHeader.cxx:16
std::ostream & m_os
Definition XmlHeader.h:24
void addStylesheet(const std::string &stylesheetPath)
Definition XmlHeader.cxx:21