Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
pugi::xml_writer_file Class Reference

#include <pugixml.hpp>

Inheritance diagram for pugi::xml_writer_file:

Public Member Functions

 xml_writer_file (void *file)
virtual void write (const void *data, size_t size) PUGIXML_OVERRIDE
Public Member Functions inherited from pugi::xml_writer
virtual ~xml_writer ()

Detailed Description

Definition at line 334 of file pugixml.hpp.

Constructor & Destructor Documentation

◆ xml_writer_file()

PUGI__FN pugi::xml_writer_file::xml_writer_file ( void * file)

Definition at line 5095 of file pugixml.cc.

5095 : file(file_)
5096 {
5097 }

Member Function Documentation

◆ write()

PUGI__FN void pugi::xml_writer_file::write ( const void * data,
size_t size )
virtual

Implements pugi::xml_writer.

Definition at line 5099 of file pugixml.cc.

5100 {
5101 size_t result = fwrite(data, 1, size, static_cast<FILE*>(file));
5102 (void)!result; // unfortunately we can't do proper error handling here
5103 }

The documentation for this class was generated from the following files: