70 ReadXML(v, v_name, f, f_name, verbosity);
80 const Index& file_index,
86 const String& digits_name _U_,
104 const Index& file_index,
110 const String& digits_name,
113 v, v_name, file_index, f, digits, f_name, digits_name, verbosity);
117 template <
typename T>
119 const String& file_format,
123 const Index& no_clobber,
127 const String& no_clobber_name _U_,
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,
196 const Index& file_index,
211 WriteXML(file_format, v, filename, 0, v_name, f_name,
"", verbosity);
215 template <
typename T>
218 const String& file_format,
219 const Index& file_index,
227 const String& digits_name,
INDEX Index
The type to use for all integer numbers and indices.
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.
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.
This file contains basic functions to handle XML data files.
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.
Declarations for agendas.
The declarations of all the exception classes.
void xml_read_from_file(const String &filename, T &type, const Verbosity &verbosity)
Reads data from XML file.
void ReadXML(T &v, const String &v_name, const String &f, const String &f_name, const Verbosity &verbosity)
WORKSPACE METHOD: ReadXML.
void filename_xml(String &filename, const String &varname)
Gives the default filename 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 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.
FileType string2filetype(const String &file_format)