The SKIRT project
advanced radiative transfer for astrophysics
Static Public Member Functions | List of all members
XmlHierarchyWriter Class Referencefinal

#include <XmlHierarchyWriter.hpp>

Static Public Member Functions

static void write (Item *item, const SchemaDef *schema, string filePath, string producer=string())
 

Detailed Description

This class offers a static function to write the structure and properties of a SMILE dataset representation in memory to an XML file. The XML file contains sufficient information to reconstruct a fresh copy of the SMILE dataset.

Member Function Documentation

◆ write()

static void XmlHierarchyWriter::write ( Item item,
const SchemaDef schema,
string  filePath,
string  producer = string() 
)
static

Writes the structure and properties of the specified SMILE dataset described by the given schema definition to an XML file with the specified file path. The optional last argument specifies a producer identification string to be included as an attribute on the root element. If an error occurs, this function throws a fatal error.


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