ARTS  2.0.49
xml_io.h
Go to the documentation of this file.
1 /* Copyright (C) 2002-2008 Oliver Lemke <olemke@core-dump.info>
2 
3  This program is free software; you can redistribute it and/or modify it
4  under the terms of the GNU General Public License as published by the
5  Free Software Foundation; either version 2, or (at your option) any
6  later version.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16  USA. */
17 
18 
20 // File description
22 
32 #ifndef xml_io_h
33 #define xml_io_h
34 
35 #include "mystring.h"
36 #include "absorption.h"
37 
38 enum FileType {
42 };
43 
46 
47 
49 // Default file names
51 
52 void
53 filename_xml (String& filename,
54  const String& varname);
55 
56 void
58  String& filename,
59  const Index& file_index,
60  const String& varname );
61 
62 
64 // Generic IO routines for XML files
66 
67 template<typename T> void
68 xml_read_from_file (const String& filename,
69  T& type,
70  const Verbosity& verbosity);
71 
72 void
74  ArrayOfLineRecord& type,
75  const Numeric& fmin,
76  const Numeric& fmax,
77  const Verbosity& verbosity);
78 
79 template<typename T> void
80 xml_write_to_file (const String& filename,
81  const T& type,
82  const FileType ftype,
83  const Verbosity& verbosity);
84 
85 #endif
NumericType
NumericType
Definition: xml_io.h:44
absorption.h
Declarations required for the calculation of absorption coefficients.
FILE_TYPE_BINARY
@ FILE_TYPE_BINARY
Definition: xml_io.h:41
xml_write_to_file
void xml_write_to_file(const String &filename, const T &type, const FileType ftype, const Verbosity &verbosity)
Write data to XML file.
Definition: xml_io.cc:1017
xml_read_arts_catalogue_from_file
void xml_read_arts_catalogue_from_file(const String &filename, ArrayOfLineRecord &type, const Numeric &fmin, const Numeric &fmax, const Verbosity &verbosity)
Definition: xml_io.cc:928
xml_read_from_file
void xml_read_from_file(const String &filename, T &type, const Verbosity &verbosity)
Reads data from XML file.
Definition: xml_io.cc:850
Array
This can be used to make arrays out of anything.
Definition: array.h:103
NUMERIC_TYPE_DOUBLE
@ NUMERIC_TYPE_DOUBLE
Definition: xml_io.h:44
FILE_TYPE_ZIPPED_ASCII
@ FILE_TYPE_ZIPPED_ASCII
Definition: xml_io.h:40
my_basic_string
The implementation for String, the ARTS string class.
Definition: mystring.h:62
Numeric
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33
Verbosity
Definition: messages.h:50
filename_xml_with_index
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.
Definition: xml_io.cc:385
ENDIAN_TYPE_LITTLE
@ ENDIAN_TYPE_LITTLE
Definition: xml_io.h:45
filename_xml
void filename_xml(String &filename, const String &varname)
Gives the default filename for the XML formats.
Definition: xml_io.cc:364
NUMERIC_TYPE_FLOAT
@ NUMERIC_TYPE_FLOAT
Definition: xml_io.h:44
FileType
FileType
Definition: xml_io.h:38
ENDIAN_TYPE_BIG
@ ENDIAN_TYPE_BIG
Definition: xml_io.h:45
EndianType
EndianType
Definition: xml_io.h:45
FILE_TYPE_ASCII
@ FILE_TYPE_ASCII
Definition: xml_io.h:39
Index
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39
mystring.h
This file contains the definition of String, the ARTS string class.