Go to the documentation of this file.
110 const String& digits_name,
117 template <
typename T>
119 const String& file_format,
123 const Index& no_clobber,
134 MPI_Initialized(&initialized);
136 MPI_Init(
nullptr,
nullptr);
139 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
154 #pragma omp critical(WriteXML_critical_region)
158 }
catch (
const std::exception& e) {
163 if (errmsg.length()) {
164 throw std::runtime_error(errmsg);
169 template <
typename T>
172 const String& file_format,
176 const Index& no_clobber,
180 const String& no_clobber_name,
193 template <
typename T>
195 const String& file_format,
215 template <
typename T>
218 const String& file_format,
227 const String& digits_name,
The declarations of all the exception classes.
void ReadXMLIndexed(T &v, const String &v_name, const Index &file_index, const String &f, const Index &digits, const String &f_name, const String &digits_name, const Verbosity &verbosity)
WORKSPACE METHOD: ReadXMLIndexed.
Verbosity verbosity(Workspace &ws) noexcept
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.
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.
void WriteXMLIndexed(const String &file_format, const Index &file_index, const T &v, const String &f, const Index &digits, const String &v_name, const String &f_name, const String &digits_name, const Verbosity &verbosity)
WORKSPACE METHOD: WriteXMLIndexed.
This file contains the Workspace class.
Index file_index(Workspace &ws) noexcept
INDEX Index
The type to use for all integer numbers and indices.
FileType string2filetype(const String &file_format)
void filename_xml(String &filename, const String &varname)
Gives the default filename for the XML formats.
void filename_xml_with_index(String &filename, const Index &file_index, const String &varname, const Index &digits)
Gives the default filename, with file index, for the XML formats.
This file contains basic functions to handle XML data files.