MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / readCharacters

Method readCharacters

src/Base/Reader.cpp:320–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void Base::XMLReader::readCharacters(const char* filename, CharStreamFormat format)
321{
322 Base::FileInfo fi(filename);
323 Base::ofstream to(fi, std::ios::out | std::ios::binary | std::ios::trunc);
324 if (!to) {
325 throw Base::FileException("XMLReader::readCharacters() Could not open file!");
326 }
327
328 beginCharStream(format) >> to.rdbuf();
329 to.close();
330 endCharStream();
331}
332
333std::streamsize Base::XMLReader::read(char_type* s, std::streamsize n)
334{

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected