Go to the documentation of this file.
36 template<
typename T>
void
71 template<
typename T>
void
77 const Index& file_index,
108 template<
typename T>
void
110 const String& file_format,
114 const Index& no_clobber,
128 if (file_format ==
"ascii")
130 else if (file_format ==
"zascii")
132 else if (file_format ==
"binary")
135 throw runtime_error (
"file_format contains illegal string. "
136 "Valid values are:\n"
137 " ascii: XML output\n"
138 " zascii: Zipped XML output\n"
139 " binary: XML + binary output");
143 #pragma omp critical(WriteXML_critical_region)
148 catch (std::runtime_error e)
155 throw std::runtime_error(errmsg);
164 const String& file_format,
168 const Index& no_clobber,
172 const String& no_clobber_name,
176 template<
typename T>
void
178 const String& file_format,
179 const Index& file_index,
193 WriteXML( file_format, v, filename, 0,
194 v_name, f_name,
"", verbosity );
202 const String& file_format,
203 const Index& file_index,
void ReadXMLIndexed(T &v, const String &v_name, const Index &file_index, const String &f, const String &f_name, const Verbosity &verbosity)
WORKSPACE METHOD: ReadXMLIndexed.
The declarations of all the exception classes.
void WriteXMLIndexed(const String &file_format, const Index &file_index, const T &v, const String &f, const String &v_name, const String &f_name, const Verbosity &verbosity)
WORKSPACE METHOD: WriteXMLIndexed.
void filename_xml_with_index(String &filename, const Index &file_index, const String &varname)
Gives the default filename, with file index, for the XML formats.
void WriteXML(const String &file_format, const T &v, const String &f, const Index &no_clobber, const String &v_name, const String &f_name, const String &no_clobber_name, const Verbosity &verbosity)
WORKSPACE METHOD: WriteXML.
void ReadXML(T &v, const String &v_name, const String &f, const String &f_name, const Verbosity &verbosity)
WORKSPACE METHOD: ReadXML.
Declarations for agendas.
void xml_read_from_file(const String &filename, T &type, const Verbosity &verbosity)
Reads data from XML file.
The implementation for String, the ARTS string class.
void xml_write_to_file(const String &filename, const T &type, const FileType ftype, const Index no_clobber, const Verbosity &verbosity)
Write data to XML file.
This file contains the declaration and partly the implementation of the workspace class.
INDEX Index
The type to use for all integer numbers and indices.
void filename_xml(String &filename, const String &varname)
Gives the default filename for the XML formats.
This file contains basic functions to handle XML data files.