MCPcopy Create free account
hub / github.com/RenderKit/embree / emitXML

Function emitXML

tutorials/common/scenegraph/xml_parser.cpp:189–195  ·  view source on GitHub ↗

! store XML to disk */

Source from the content-addressed store, hash-verified

187
188 /*! store XML to disk */
189 void emitXML(const FileName& fileName, const Ref<XML>& xml)
190 {
191 std::ofstream cout(fileName.c_str());
192 if (!cout.is_open()) THROW_RUNTIME_ERROR("cannot open file " + fileName.str() + " for writing");
193 emitXML(cout,xml);
194 cout.close();
195 }
196}

Callers 1

xml_parser.cppFile · 0.85

Calls 3

c_strMethod · 0.45
strMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected