ARTS  2.2.66
xml_io_types.h File Reference

This file contains private function declarations and template instantiation to handle XML data files. More...

#include <stdexcept>
#include <cfloat>
#include "absorption.h"
#include "agenda_class.h"
#include "array.h"
#include "bifstream.h"
#include "bofstream.h"
#include "cia.h"
#include "gas_abs_lookup.h"
#include "gridded_fields.h"
#include "jacobian.h"
#include "m_general.h"
#include "mc_antenna.h"
#include "mc_interp.h"
#include "matpackII.h"
#include "matpackVII.h"
#include "messages.h"
#include "optproperties.h"
#include "ppath.h"
#include "xml_io_private.h"

Go to the source code of this file.

Macros

#define TMPL_XML_READ_WRITE_STREAM(what)
 

Functions

void xml_parse_from_stream (istream &, Vector &, bifstream *, ArtsXMLTag &, const Verbosity &verbosity)
 Parses Vector from XML input stream. More...
 
void xml_read_from_stream (istream &, ArrayOfLineRecord &, const Numeric, const Numeric, bifstream *, const Verbosity &)
 Reads ArrayOfLineRecord from XML input stream within specified frequency range. More...
 
void xml_parse_from_stream (istream &, ArrayOfString &, bifstream *, ArtsXMLTag &, const Verbosity &)
 Parse ArrayOfString from XML input stream. More...
 

Detailed Description

This file contains private function declarations and template instantiation 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_types.h.

Macro Definition Documentation

◆ TMPL_XML_READ_WRITE_STREAM

#define TMPL_XML_READ_WRITE_STREAM (   what)
Value:
void xml_read_from_stream(istream&, what&, bifstream *, const Verbosity&); \
void xml_write_to_stream(ostream&, const what&, bofstream *, \
const String&, const Verbosity&);

Definition at line 56 of file xml_io_types.h.

Function Documentation

◆ xml_parse_from_stream() [1/2]

void xml_parse_from_stream ( istream &  is_xml,
ArrayOfString astring,
bifstream pbifs,
ArtsXMLTag tag,
const Verbosity verbosity 
)

Parse ArrayOfString from XML input stream.

Parameters
is_xmlXML Input stream
astringArrayOfString return value
pbifsPointer to binary input stream. NULL in case of ASCII file.
tagXML tag object

Definition at line 3066 of file xml_io_array_types.cc.

References ArtsXMLTag::check_attribute(), ArtsXMLTag::get_attribute_value(), and xml_read_from_stream().

Referenced by xml_read_from_stream().

◆ xml_parse_from_stream() [2/2]

void xml_parse_from_stream ( istream &  is_xml,
Vector vector,
bifstream pbifs,
ArtsXMLTag tag,
const Verbosity  
)

Parses Vector from XML input stream.

Parameters
is_xmlXML Input stream
vectorVector return value
pbifsPointer to binary input stream. NULL in case of ASCII file.
tagXML tag object

Definition at line 1319 of file xml_io_basic_types.cc.

References ArtsXMLTag::get_attribute_value(), Vector::resize(), and xml_data_parse_error().

Referenced by xml_read_from_stream().

◆ xml_read_from_stream()

void xml_read_from_stream ( istream &  is_xml,
ArrayOfLineRecord alrecord,
const Numeric  fmin,
const Numeric  fmax,
bifstream pbifs,
const Verbosity verbosity 
)

Reads ArrayOfLineRecord from XML input stream within specified frequency range.

Parameters
is_xmlXML Input stream
alrecordArrayOfLineRecord return value
fminLowest frequency (NAN = no limit)
fmaxHighest frequency (NAN = no limit)
pbifsPointer to binary input stream. NULL in case of ASCII file.

Definition at line 2466 of file xml_io_array_types.cc.

References ArtsXMLTag::check_name(), CREATE_OUT2, LineRecord::F(), ArtsXMLTag::get_attribute_value(), Array< base >::nelem(), ArtsXMLTag::read_from_stream(), LineRecord::ReadFromArtscat3Stream(), and LineRecord::ReadFromArtscat4Stream().

xml_write_to_stream
void xml_write_to_stream(ostream &os_xml, const Array< SpeciesRecord > &asrecord, bofstream *pbofs, const String &name, const Verbosity &verbosity)
Writes SpeciesData to XML output stream.
Definition: xml_io_array_types.cc:93
my_basic_string
The implementation for String, the ARTS string class.
Definition: mystring.h:64
Verbosity
Definition: messages.h:50
bifstream
Binary output file stream class.
Definition: bifstream.h:45
xml_read_from_stream
void xml_read_from_stream(istream &, ArrayOfLineRecord &, const Numeric, const Numeric, bifstream *, const Verbosity &)
Reads ArrayOfLineRecord from XML input stream within specified frequency range.
Definition: xml_io_array_types.cc:2466
bofstream
Binary output file stream class.
Definition: bofstream.h:45