MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / WriteRoot

Method WriteRoot

lib/mdflib/mdflib/src/ixmlfile.cpp:104–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void IXmlFile::WriteRoot(std::ostream &dest, bool skip_header) {
105 if (!skip_header) {
106 dest << "<?xml version='" << Version() << "' encoding='" << Encoding()
107 << "'";
108 if (Standalone()) {
109 dest << " standalone='yes'";
110 }
111 dest << "?>" << std::endl;
112
113 if (!style_sheet_.empty()) {
114 dest << "<?xml-stylesheet type='text/xsl' href='" << StyleSheet() << "'?>"
115 << std::endl;
116 }
117 }
118 if (root_node_) {
119 root_node_->Write(dest, 0);
120 }
121}
122
123void IXmlFile::FileName(const std::string &filename) { filename_ = filename; }
124

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected