ARTS 2.5.9 (git: 825fa5f2)
xml_io_compound_types.cc File Reference

This file contains basic functions to handle XML data files. More...

#include "arts.h"
#include "cloudbox.h"
#include "debug.h"
#include "global_data.h"
#include "predefined/predef_data.h"
#include "xml_io.h"
#include <sstream>

Go to the source code of this file.

Functions

void xml_read_from_stream (istream &is_xml, CIARecord &cr, bifstream *pbifs, const Verbosity &verbosity)
 Reads CIARecord from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const CIARecord &cr, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes CIARecord to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, CovarianceMatrix &covmat, bifstream *pbifs, const Verbosity &verbosity)
 Reads CovarianceMatrix from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const CovarianceMatrix &covmat, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Write CovarianceMatrix to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, EnergyLevelMap &elm, bifstream *pbifs, const Verbosity &verbosity)
 Reads EnergyLevelMap from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const EnergyLevelMap &elm, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes EnergyLevelMap to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GasAbsLookup &gal, bifstream *pbifs, const Verbosity &verbosity)
 Reads GasAbsLookup from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GasAbsLookup &gal, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GasAbsLookup to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads the grids for gridded fields from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField &gfield, bofstream *pbofs, const String &, const Verbosity &verbosity)
 Writes the grids for gridded fields to an XML input stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField1 &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads GriddedField1 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField1 &gfield, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GriddedField1 to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField2 &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads GriddedField2 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField2 &gfield, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GriddedField2 to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField3 &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads GriddedField3 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField3 &gfield, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GriddedField3 to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField4 &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads GriddedField4 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField4 &gfield, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GriddedField4 to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField5 &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads GriddedField5 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField5 &gfield, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GriddedField5 to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GriddedField6 &gfield, bifstream *pbifs, const Verbosity &verbosity)
 Reads GriddedField6 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GriddedField6 &gfield, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GriddedField6 to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, GridPos &gpos, bifstream *pbifs, const Verbosity &verbosity)
 Reads GridPos from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const GridPos &gpos, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes GridPos to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, HitranRelaxationMatrixData &hitran, bifstream *pbifs, const Verbosity &verbosity)
 Reads HitranRelaxationMatrixData from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const HitranRelaxationMatrixData &hitran, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes HitranRelaxationMatrixData to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, Ppath &ppath, bifstream *pbifs, const Verbosity &verbosity)
 Reads Ppath from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const Ppath &ppath, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes Ppath to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, PropagationMatrix &pm, bifstream *pbifs, const Verbosity &verbosity)
 Reads PropagationMatrix from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const PropagationMatrix &pm, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes PropagationMatrix to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, QuantumIdentifier &qi, bifstream *pbifs, const Verbosity &verbosity)
 Reads QuantumIdentifier from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const QuantumIdentifier &qi, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes QuantumIdentifier to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, RetrievalQuantity &rq, bifstream *pbifs, const Verbosity &verbosity)
 Reads RetrievalQuantity from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const RetrievalQuantity &rq, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes RetrievalQuantity to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, SingleScatteringData &ssdata, bifstream *pbifs, const Verbosity &verbosity)
 Reads SingleScatteringData from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const SingleScatteringData &ssdata, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes SingleScatteringData to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, ScatteringMetaData &smdata, bifstream *pbifs, const Verbosity &verbosity)
 Reads ScatteringMetaData from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const ScatteringMetaData &smdata, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes ScatteringMetaData to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, SLIData2 &slidata, bifstream *pbifs, const Verbosity &verbosity)
 Reads SLIData2 from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const SLIData2 &slidata, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 
void xml_read_from_stream (istream &is_xml, SpeciesIsotopologueRatios &iso_rat, bifstream *pbifs, const Verbosity &verbosity)
 Reads SpeciesIsotopologueRatios from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const SpeciesIsotopologueRatios &iso_rat, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes SpeciesIsotopologueRatios to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, SpeciesTag &stag, bifstream *, const Verbosity &verbosity)
 Reads SpeciesTag from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const SpeciesTag &stag, bofstream *, const String &name, const Verbosity &verbosity)
 Writes SpeciesTag to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, Star &star, bifstream *pbifs, const Verbosity &verbosity)
 Reads Star from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const Star &star, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes Star to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, StokesVector &sv, bifstream *pbifs, const Verbosity &verbosity)
 Reads StokesVector from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const StokesVector &sv, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes StokesVector to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, TelsemAtlas &ta, bifstream *pbifs, const Verbosity &verbosity)
 Reads TelsemAtlas from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const TelsemAtlas &ta, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes TelsemAtlas to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, XsecRecord &xd, bifstream *pbifs, const Verbosity &verbosity)
 Reads XsecData from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const XsecRecord &xd, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes XsecData to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, MapOfErrorCorrectedSuddenData &rvb, bifstream *pbifs, const Verbosity &verbosity)
 Reads MapOfErrorCorrectedSuddenData from XML input stream. More...
 
void xml_write_to_stream (ostream &os_xml, const MapOfErrorCorrectedSuddenData &rvb, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 Writes MapOfErrorCorrectedSuddenData to XML output stream. More...
 
void xml_read_from_stream (istream &is_xml, PredefinedModelData &pmd, bifstream *pbifs, const Verbosity &verbosity)
 
void xml_write_to_stream (ostream &os_xml, const PredefinedModelData &pmd, bofstream *pbofs, const String &name, const Verbosity &verbosity)
 
void xml_read_from_stream (istream &, Agenda &, bifstream *, const Verbosity &)
 
void xml_write_to_stream (ostream &, const Agenda &, bofstream *, const String &, const Verbosity &)
 
void xml_read_from_stream (istream &, MCAntenna &, bifstream *, const Verbosity &)
 
void xml_write_to_stream (ostream &, const MCAntenna &, bofstream *, const String &, const Verbosity &)
 
void xml_read_from_stream (istream &, TessemNN &, bifstream *, const Verbosity &)
 
void xml_write_to_stream (ostream &, const TessemNN &, bofstream *, const String &, const Verbosity &)
 
void xml_read_from_stream (istream &, Verbosity &, bifstream *, const Verbosity &)
 
void xml_write_to_stream (ostream &, const Verbosity &, bofstream *, const String &, const Verbosity &)
 
void xml_read_from_stream (istream &, CallbackFunction &, bifstream *, const Verbosity &)
 
void xml_write_to_stream (ostream &, const CallbackFunction &, bofstream *, const String &, const Verbosity &)
 

Detailed Description

This file contains basic functions to handle XML data files.

Author
Oliver Lemke olemk.nosp@m.e@co.nosp@m.re-du.nosp@m.mp.i.nosp@m.nfo
Date
2003-06-11

Definition in file xml_io_compound_types.cc.

Function Documentation

◆ xml_read_from_stream() [1/33]

void xml_read_from_stream ( istream &  ,
Agenda ,
bifstream ,
const Verbosity  
)

Definition at line 2269 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_read_from_stream() [2/33]

void xml_read_from_stream ( istream &  ,
CallbackFunction ,
bifstream ,
const Verbosity  
)

Definition at line 2337 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_read_from_stream() [3/33]

void xml_read_from_stream ( istream &  ,
MCAntenna ,
bifstream ,
const Verbosity  
)

Definition at line 2286 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_read_from_stream() [4/33]

void xml_read_from_stream ( istream &  ,
TessemNN ,
bifstream ,
const Verbosity  
)

Definition at line 2303 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_read_from_stream() [5/33]

void xml_read_from_stream ( istream &  ,
Verbosity ,
bifstream ,
const Verbosity  
)

Definition at line 2320 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_read_from_stream() [6/33]

void xml_read_from_stream ( istream &  is_xml,
CIARecord cr,
bifstream pbifs,
const Verbosity verbosity 
)

Reads CIARecord from XML input stream.

Parameters
is_xmlXML Input stream
irecordCIARecord return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 49 of file xml_io_compound_types.cc.

Referenced by xml_read_from_stream().

◆ xml_read_from_stream() [7/33]

void xml_read_from_stream ( istream &  is_xml,
CovarianceMatrix covmat,
bifstream pbifs,
const Verbosity verbosity 
)

Reads CovarianceMatrix from XML input stream.

Parameters
is_xmlXML Input stream
covmatCovarianceMatrix
pbifsPointer to binary file stream. NULL for ASCII output.
verbosity

Definition at line 122 of file xml_io_compound_types.cc.

◆ xml_read_from_stream() [8/33]

void xml_read_from_stream ( istream &  is_xml,
EnergyLevelMap elm,
bifstream pbifs,
const Verbosity verbosity 
)

Reads EnergyLevelMap from XML input stream.

Parameters
is_xmlXML Input stream
galEnergyLevelMap return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 289 of file xml_io_compound_types.cc.

References XMLTag::check_name(), ArtsXMLTag::get_attribute_value(), EnergyLevelMap::levels, XMLTag::read_from_stream(), EnergyLevelMap::ThrowIfNotOK(), toEnergyLevelMapTypeOrThrow(), EnergyLevelMap::type, EnergyLevelMap::value, EnergyLevelMap::vib_energy, and xml_read_from_stream().

◆ xml_read_from_stream() [9/33]

void xml_read_from_stream ( istream &  is_xml,
GasAbsLookup gal,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GasAbsLookup from XML input stream.

Parameters
is_xmlXML Input stream
galGasAbsLookup return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 349 of file xml_io_compound_types.cc.

◆ xml_read_from_stream() [10/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads the grids for gridded fields from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 423 of file xml_io_compound_types.cc.

References XMLTag::check_name(), XMLTag::get_attribute_value(), GriddedField::get_dim(), XMLTag::get_name(), XMLTag::read_from_stream(), GriddedField::set_grid(), GriddedField::set_grid_name(), v, xml_parse_error(), and xml_parse_from_stream().

◆ xml_read_from_stream() [11/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField1 gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GriddedField1 from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField1 return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 510 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GriddedField1::checksize_strict(), GriddedField1::data, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), GriddedField::set_name(), and xml_read_from_stream().

◆ xml_read_from_stream() [12/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField2 gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GriddedField2 from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField2 return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 572 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GriddedField2::checksize_strict(), GriddedField2::data, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), GriddedField::set_name(), and xml_read_from_stream().

◆ xml_read_from_stream() [13/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField3 gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GriddedField3 from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField3 return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 634 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GriddedField3::checksize_strict(), GriddedField3::data, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), GriddedField::set_name(), and xml_read_from_stream().

◆ xml_read_from_stream() [14/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField4 gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GriddedField4 from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField4 return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 696 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GriddedField4::checksize_strict(), GriddedField4::data, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), GriddedField::set_name(), and xml_read_from_stream().

◆ xml_read_from_stream() [15/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField5 gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GriddedField5 from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField5 return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 758 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GriddedField5::checksize_strict(), GriddedField5::data, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), GriddedField::set_name(), and xml_read_from_stream().

◆ xml_read_from_stream() [16/33]

void xml_read_from_stream ( istream &  is_xml,
GriddedField6 gfield,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GriddedField6 from XML input stream.

Parameters
is_xmlXML Input stream
gfieldGriddedField6 return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 820 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GriddedField6::checksize_strict(), GriddedField6::data, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), GriddedField::set_name(), and xml_read_from_stream().

◆ xml_read_from_stream() [17/33]

void xml_read_from_stream ( istream &  is_xml,
GridPos gpos,
bifstream pbifs,
const Verbosity verbosity 
)

Reads GridPos from XML input stream.

Parameters
is_xmlXML Input stream
gposGridPos return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 882 of file xml_io_compound_types.cc.

References XMLTag::check_name(), GridPos::fd, GridPos::idx, XMLTag::read_from_stream(), and xml_read_from_stream().

◆ xml_read_from_stream() [18/33]

◆ xml_read_from_stream() [19/33]

void xml_read_from_stream ( istream &  is_xml,
MapOfErrorCorrectedSuddenData rvb,
bifstream pbifs,
const Verbosity verbosity 
)

Reads MapOfErrorCorrectedSuddenData from XML input stream.

Parameters
is_xmlXML Input stream
rvbMapOfErrorCorrectedSuddenData return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 2039 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR_IF, XMLTag::check_name(), CREATE_OUT2, ArtsXMLTag::get_attribute_value(), XMLTag::read_from_stream(), and Absorption::LineMixing::SpeciesErrorCorrectedSuddenData::spec.

◆ xml_read_from_stream() [20/33]

void xml_read_from_stream ( istream &  is_xml,
Ppath ppath,
bifstream pbifs,
const Verbosity verbosity 
)

Reads Ppath from XML input stream.

Parameters
is_xmlXML Input stream
ppathPpath return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1025 of file xml_io_compound_types.cc.

References Ppath::background, XMLTag::check_name(), Ppath::constant, Ppath::dim, Ppath::end_los, Ppath::end_lstep, Ppath::end_pos, Ppath::gp_lat, Ppath::gp_lon, Ppath::gp_p, Ppath::los, Ppath::lstep, Ppath::ngroup, Ppath::np, Ppath::nreal, Ppath::pos, Ppath::r, XMLTag::read_from_stream(), Ppath::start_los, Ppath::start_lstep, Ppath::start_pos, and xml_read_from_stream().

◆ xml_read_from_stream() [21/33]

void xml_read_from_stream ( istream &  is_xml,
PredefinedModelData &  pmd,
bifstream pbifs,
const Verbosity verbosity 
)
Parameters
is_xmlXML Input stream
pmdPredefinedModelData return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 2152 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR_IF, XMLTag::check_name(), CREATE_OUT2, ArtsXMLTag::get_attribute_value(), and XMLTag::read_from_stream().

◆ xml_read_from_stream() [22/33]

void xml_read_from_stream ( istream &  is_xml,
PropagationMatrix pm,
bifstream pbifs,
const Verbosity verbosity 
)

Reads PropagationMatrix from XML input stream.

Parameters
is_xmlXML Input stream
pmPropagationMatrix return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1134 of file xml_io_compound_types.cc.

References XMLTag::check_name(), d, PropagationMatrix::Data(), XMLTag::read_from_stream(), and xml_read_from_stream().

◆ xml_read_from_stream() [23/33]

void xml_read_from_stream ( istream &  is_xml,
QuantumIdentifier qi,
bifstream pbifs,
const Verbosity verbosity 
)

Reads QuantumIdentifier from XML input stream.

Parameters
is_xmlXML Input stream
qiQuantumIdentifier return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1201 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR_IF, XMLTag::check_name(), ArtsXMLTag::get_attribute_value(), XMLTag::has_attribute(), parse_xml_tag_content_as_string(), XMLTag::read_from_stream(), and Quantum::Number::GlobalState::version.

◆ xml_read_from_stream() [24/33]

void xml_read_from_stream ( istream &  is_xml,
RetrievalQuantity rq,
bifstream pbifs,
const Verbosity verbosity 
)

Reads RetrievalQuantity from XML input stream.

Parameters
is_xmlXML Input stream
rqRetrievalQuantity return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1275 of file xml_io_compound_types.cc.

References XMLTag::check_name(), Jacobian::Target::perturbation, XMLTag::read_from_stream(), and xml_read_from_stream().

◆ xml_read_from_stream() [25/33]

void xml_read_from_stream ( istream &  is_xml,
ScatteringMetaData smdata,
bifstream pbifs,
const Verbosity verbosity 
)

◆ xml_read_from_stream() [26/33]

◆ xml_read_from_stream() [27/33]

void xml_read_from_stream ( istream &  is_xml,
SLIData2 slidata,
bifstream pbifs,
const Verbosity verbosity 
)

Reads SLIData2 from XML input stream.

Parameters
is_xmlXML Input stream
slidataSLIData return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1528 of file xml_io_compound_types.cc.

References XMLTag::check_name(), XMLTag::read_from_stream(), SLIData2::x1a, SLIData2::x2a, xml_read_from_stream(), and SLIData2::ya.

◆ xml_read_from_stream() [28/33]

void xml_read_from_stream ( istream &  is_xml,
SpeciesIsotopologueRatios iso_rat,
bifstream pbifs,
const Verbosity verbosity 
)

Reads SpeciesIsotopologueRatios from XML input stream.

Parameters
is_xmlXML Input stream
sapSpeciesIsotopologueRatios return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1574 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR_IF, XMLTag::check_name(), CREATE_OUT2, Species::IsotopologueRatios::data, Species::find_species_index(), ArtsXMLTag::get_attribute_value(), Species::IsotopologueRatios::maxsize, XMLTag::read_from_stream(), and xml_data_parse_error().

◆ xml_read_from_stream() [29/33]

void xml_read_from_stream ( istream &  is_xml,
SpeciesTag stag,
bifstream ,
const Verbosity verbosity 
)

Reads SpeciesTag from XML input stream.

Parameters
is_xmlXML Input stream
stagSpeciesTag return value

Definition at line 1659 of file xml_io_compound_types.cc.

References XMLTag::check_name(), XMLTag::read_from_stream(), and xml_parse_error().

◆ xml_read_from_stream() [30/33]

void xml_read_from_stream ( istream &  is_xml,
Star star,
bifstream pbifs,
const Verbosity verbosity 
)

Reads Star from XML input stream.

Parameters
is_xmlXML Input stream
starStar return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1740 of file xml_io_compound_types.cc.

References XMLTag::check_name(), Star::description, Star::distance, Star::latitude, Star::longitude, Star::radius, XMLTag::read_from_stream(), Star::spectrum, and xml_read_from_stream().

◆ xml_read_from_stream() [31/33]

void xml_read_from_stream ( istream &  is_xml,
StokesVector sv,
bifstream pbifs,
const Verbosity verbosity 
)

Reads StokesVector from XML input stream.

Parameters
is_xmlXML Input stream
svStokesVector return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1800 of file xml_io_compound_types.cc.

References XMLTag::check_name(), d, PropagationMatrix::Data(), XMLTag::read_from_stream(), and xml_read_from_stream().

◆ xml_read_from_stream() [32/33]

void xml_read_from_stream ( istream &  is_xml,
TelsemAtlas ta,
bifstream pbifs,
const Verbosity verbosity 
)

Reads TelsemAtlas from XML input stream.

Parameters
is_xmlXML Input stream
pmTelsemAtlas return value
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 1867 of file xml_io_compound_types.cc.

◆ xml_read_from_stream() [33/33]

void xml_read_from_stream ( istream &  is_xml,
XsecRecord xd,
bifstream pbifs,
const Verbosity verbosity 
)

◆ xml_write_to_stream() [1/33]

void xml_write_to_stream ( ostream &  ,
const Agenda ,
bofstream ,
const String ,
const Verbosity  
)

Definition at line 2276 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_write_to_stream() [2/33]

void xml_write_to_stream ( ostream &  ,
const CallbackFunction ,
bofstream ,
const String ,
const Verbosity  
)

Definition at line 2344 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_write_to_stream() [3/33]

void xml_write_to_stream ( ostream &  ,
const MCAntenna ,
bofstream ,
const String ,
const Verbosity  
)

Definition at line 2293 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_write_to_stream() [4/33]

void xml_write_to_stream ( ostream &  ,
const TessemNN ,
bofstream ,
const String ,
const Verbosity  
)

Definition at line 2310 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_write_to_stream() [5/33]

void xml_write_to_stream ( ostream &  ,
const Verbosity ,
bofstream ,
const String ,
const Verbosity  
)

Definition at line 2327 of file xml_io_compound_types.cc.

References ARTS_USER_ERROR.

◆ xml_write_to_stream() [6/33]

void xml_write_to_stream ( ostream &  os_xml,
const CIARecord cr,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes CIARecord to XML output stream.

Parameters
os_xmlXML Output stream
irecordCIARecord
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 94 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), CIARecord::Data(), CIARecord::MoleculeName(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

Referenced by xml_write_to_stream().

◆ xml_write_to_stream() [7/33]

void xml_write_to_stream ( ostream &  os_xml,
const CovarianceMatrix covmat,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Write CovarianceMatrix to XML output stream.

Parameters
os_xmlXML output stream
covmatCovarianceMatrix
pbofsPointer to binary file stream. NULL for ASCII output.
nameUnused
verbosity

Definition at line 201 of file xml_io_compound_types.cc.

◆ xml_write_to_stream() [8/33]

void xml_write_to_stream ( ostream &  os_xml,
const EnergyLevelMap elm,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes EnergyLevelMap to XML output stream.

Parameters
os_xmlXML Output stream
galEnergyLevelMap
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 319 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), EnergyLevelMap::levels, XMLTag::set_name(), toString(), EnergyLevelMap::type, EnergyLevelMap::value, EnergyLevelMap::vib_energy, XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [9/33]

void xml_write_to_stream ( ostream &  os_xml,
const GasAbsLookup gal,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GasAbsLookup to XML output stream.

Parameters
os_xmlXML Output stream
galGasAbsLookup
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 379 of file xml_io_compound_types.cc.

◆ xml_write_to_stream() [10/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField gfield,
bofstream pbofs,
const String ,
const Verbosity verbosity 
)

Writes the grids for gridded fields to an XML input stream.

Parameters
os_xmlXML output stream
gfieldGriddedField with the grids
pbofsPointer to binary output stream. NULL in case of ASCII file.

Definition at line 477 of file xml_io_compound_types.cc.

References GriddedField::get_dim(), GriddedField::get_grid_name(), GriddedField::get_grid_type(), GriddedField::get_numeric_grid(), GriddedField::get_string_grid(), GRID_TYPE_NUMERIC, GRID_TYPE_STRING, and xml_write_to_stream().

◆ xml_write_to_stream() [11/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField1 gfield,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GriddedField1 to XML output stream.

Parameters
os_xmlXML Output stream
gfieldGriddedField1
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 539 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GriddedField1::data, GriddedField::get_name(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [12/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField2 gfield,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GriddedField2 to XML output stream.

Parameters
os_xmlXML Output stream
gfieldGriddedField2
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 601 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GriddedField2::data, GriddedField::get_name(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [13/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField3 gfield,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GriddedField3 to XML output stream.

Parameters
os_xmlXML Output stream
gfieldGriddedField3
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 663 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GriddedField3::data, GriddedField::get_name(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [14/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField4 gfield,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GriddedField4 to XML output stream.

Parameters
os_xmlXML Output stream
gfieldGriddedField4
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 725 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GriddedField4::data, GriddedField::get_name(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [15/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField5 gfield,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GriddedField5 to XML output stream.

Parameters
os_xmlXML Output stream
gfieldGriddedField5
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 787 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GriddedField5::data, GriddedField::get_name(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [16/33]

void xml_write_to_stream ( ostream &  os_xml,
const GriddedField6 gfield,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GriddedField6 to XML output stream.

Parameters
os_xmlXML Output stream
gfieldGriddedField6
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 849 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GriddedField6::data, GriddedField::get_name(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [17/33]

void xml_write_to_stream ( ostream &  os_xml,
const GridPos gpos,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes GridPos to XML output stream.

Parameters
os_xmlXML Output stream
gposGridPos
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 906 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), GridPos::fd, GridPos::idx, XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [18/33]

◆ xml_write_to_stream() [19/33]

void xml_write_to_stream ( ostream &  os_xml,
const MapOfErrorCorrectedSuddenData rvb,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes MapOfErrorCorrectedSuddenData to XML output stream.

Parameters
os_xmlXML Output stream
rvbMapOfErrorCorrectedSuddenData
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 2103 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), ARTS_USER_ERROR_IF, Array< base >::nelem(), XMLTag::set_name(), var_string(), XMLTag::write_to_stream(), and xml_set_stream_precision().

◆ xml_write_to_stream() [20/33]

void xml_write_to_stream ( ostream &  os_xml,
const Ppath ppath,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

◆ xml_write_to_stream() [21/33]

void xml_write_to_stream ( ostream &  os_xml,
const PredefinedModelData &  pmd,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)
Parameters
os_xmlXML Output stream
rvbPredefinedModelData
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 2208 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), ARTS_USER_ERROR_IF, XMLTag::set_name(), toString(), var_string(), XMLTag::write_to_stream(), and xml_set_stream_precision().

◆ xml_write_to_stream() [22/33]

void xml_write_to_stream ( ostream &  os_xml,
const PropagationMatrix pm,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes PropagationMatrix to XML output stream.

Parameters
os_xmlXML Output stream
pmPropagationMatrix
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1171 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), PropagationMatrix::Data(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [23/33]

void xml_write_to_stream ( ostream &  os_xml,
const QuantumIdentifier qi,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes QuantumIdentifier to XML output stream.

Parameters
os_xmlXML Output stream
qiQuantumIdentifier
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1245 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), XMLTag::set_name(), Quantum::Number::GlobalState::version, and XMLTag::write_to_stream().

◆ xml_write_to_stream() [24/33]

void xml_write_to_stream ( ostream &  os_xml,
const RetrievalQuantity rq,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes RetrievalQuantity to XML output stream.

Parameters
os_xmlXML Output stream
rqRetrievalQuantity
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1309 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), RetrievalQuantity::Grids(), RetrievalQuantity::Mode(), XMLTag::set_name(), RetrievalQuantity::SubSubtag(), RetrievalQuantity::Subtag(), RetrievalQuantity::Target(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [25/33]

void xml_write_to_stream ( ostream &  os_xml,
const ScatteringMetaData smdata,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

◆ xml_write_to_stream() [26/33]

void xml_write_to_stream ( ostream &  os_xml,
const SingleScatteringData ssdata,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

◆ xml_write_to_stream() [27/33]

void xml_write_to_stream ( ostream &  os_xml,
const SLIData2 slidata,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

◆ xml_write_to_stream() [28/33]

void xml_write_to_stream ( ostream &  os_xml,
const SpeciesIsotopologueRatios iso_rat,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes SpeciesIsotopologueRatios to XML output stream.

Parameters
os_xmlXML Output stream
sapSpeciesIsotopologueRatios
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1622 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), ARTS_USER_ERROR_IF, Species::IsotopologueRatios::maxsize, XMLTag::set_name(), XMLTag::write_to_stream(), and xml_set_stream_precision().

◆ xml_write_to_stream() [29/33]

void xml_write_to_stream ( ostream &  os_xml,
const SpeciesTag stag,
bofstream ,
const String name,
const Verbosity verbosity 
)

Writes SpeciesTag to XML output stream.

Parameters
os_xmlXML Output stream
stagSpeciesTag
nameOptional name attribute

Definition at line 1713 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), XMLTag::set_name(), and XMLTag::write_to_stream().

◆ xml_write_to_stream() [30/33]

void xml_write_to_stream ( ostream &  os_xml,
const Star star,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes Star to XML output stream.

Parameters
os_xmlXML Output stream
starStar
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1767 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), Star::description, Star::distance, Star::latitude, Star::longitude, Star::radius, XMLTag::set_name(), Star::spectrum, XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [31/33]

void xml_write_to_stream ( ostream &  os_xml,
const StokesVector sv,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes StokesVector to XML output stream.

Parameters
os_xmlXML Output stream
svStokesVector
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1837 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), PropagationMatrix::Data(), XMLTag::set_name(), XMLTag::write_to_stream(), and xml_write_to_stream().

◆ xml_write_to_stream() [32/33]

void xml_write_to_stream ( ostream &  os_xml,
const TelsemAtlas ta,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes TelsemAtlas to XML output stream.

Parameters
os_xmlXML Output stream
pmTelsemAtlas
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1899 of file xml_io_compound_types.cc.

◆ xml_write_to_stream() [33/33]

void xml_write_to_stream ( ostream &  os_xml,
const XsecRecord xd,
bofstream pbofs,
const String name,
const Verbosity verbosity 
)

Writes XsecData to XML output stream.

Parameters
os_xmlXML Output stream
xdXsecData
pbofsPointer to binary file stream. NULL for ASCII output.
nameOptional name attribute

Definition at line 1986 of file xml_io_compound_types.cc.

References ArtsXMLTag::add_attribute(), XsecRecord::FitCoeffs(), XsecRecord::FitMaxPressures(), XsecRecord::FitMaxTemperatures(), XsecRecord::FitMinPressures(), XsecRecord::FitMinTemperatures(), XMLTag::set_name(), XsecRecord::SpeciesName(), XsecRecord::Version(), XMLTag::write_to_stream(), and xml_write_to_stream().