ARTS  2.2.66
m_xml.cc
Go to the documentation of this file.
1 /* Copyright (C) 2013 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 
27 #include "m_xml.h"
28 
29 /* Workspace method: Doxygen documentation will be auto-generated */
30 void
32  // WS Generic Output:
33  Agenda& v,
34  // WS Generic Output Names:
35  const String& v_name,
36  // WS Generic Input:
37  const String& f,
38  // WS Generic Input Names:
39  const String& f_name,
40  const Verbosity& verbosity)
41 {
42  ReadXML (v, v_name, f, f_name, verbosity);
43 }
44 
45 
46 /* Workspace method: Doxygen documentation will be auto-generated */
47 void
49  // WS Generic Output:
50  Agenda& v,
51  // WS Generic Output Names:
52  const String& v_name,
53  // WS Input:
54  const Index& file_index,
55  // WS Generic Input:
56  const String& f,
57  // WS Generic Input Names:
58  const String& f_name,
59  const Verbosity& verbosity)
60 {
61  ReadXMLIndexed (v, v_name, file_index, f, f_name, verbosity);
62 }
63 
64 
65 /* Workspace method: Doxygen documentation will be auto-generated */
66 void
68  //WS Input:
69  const String& file_format,
70  // WS Generic Input:
71  const Agenda& v,
72  const String& f,
73  const Index& no_clobber,
74  // WS Generic Input Names:
75  const String& v_name,
76  const String& f_name,
77  const String& no_clobber_name,
78  const Verbosity& verbosity)
79 {
80  WriteXML (file_format, v, f, no_clobber,
81  v_name, f_name, no_clobber_name, verbosity);
82 }
83 
84 
85 /* Workspace method: Doxygen documentation will be auto-generated */
86 void
88  //WS Input:
89  const String& file_format,
90  const Index& file_index,
91  // WS Generic Input:
92  const Agenda& v,
93  const String& f,
94  // WS Generic Input Names:
95  const String& v_name,
96  const String& f_name,
97  const Verbosity& verbosity)
98 {
99  WriteXMLIndexed (file_format, file_index, v, f, v_name, f_name, verbosity);
100 }
101 
102 
103 /* Workspace method: Doxygen documentation will be auto-generated */
104 void
106  String& file_format,
107  const Verbosity&)
108 {
109  file_format = "ascii";
110 }
111 
112 
113 /* Workspace method: Doxygen documentation will be auto-generated */
114 void
116  String& file_format,
117  const Verbosity&)
118 {
119  file_format = "zascii";
120 }
121 
122 
123 /* Workspace method: Doxygen documentation will be auto-generated */
124 void
126  String& file_format,
127  const Verbosity&)
128 {
129  file_format = "binary";
130 }
131 
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:35
void output_file_formatSetZippedAscii(String &file_format, const Verbosity &)
WORKSPACE METHOD: output_file_formatSetZippedAscii.
Definition: m_xml.cc:115
void ReadXMLIndexed(Workspace &ws, Agenda &v, const String &v_name, const Index &file_index, const String &f, const String &f_name, const Verbosity &verbosity)
Definition: m_xml.cc:48
The Agenda class.
Definition: agenda_class.h:44
The implementation for String, the ARTS string class.
Definition: mystring.h:63
void output_file_formatSetBinary(String &file_format, const Verbosity &)
WORKSPACE METHOD: output_file_formatSetBinary.
Definition: m_xml.cc:125
void WriteXMLIndexed(Workspace &ws, const String &file_format, const Index &file_index, const Agenda &v, const String &f, const String &v_name, const String &f_name, const Verbosity &verbosity)
Definition: m_xml.cc:87
void ReadXML(Workspace &ws, Agenda &v, const String &v_name, const String &f, const String &f_name, const Verbosity &verbosity)
Definition: m_xml.cc:31
Workspace methods and template functions for supergeneric XML IO.
void output_file_formatSetAscii(String &file_format, const Verbosity &)
WORKSPACE METHOD: output_file_formatSetAscii.
Definition: m_xml.cc:105
Workspace class.
Definition: workspace_ng.h:47
#define _U_
Definition: config.h:167
void WriteXML(Workspace &ws, const String &file_format, const Agenda &v, const String &f, const Index &no_clobber, const String &v_name, const String &f_name, const String &no_clobber_name, const Verbosity &verbosity)
Definition: m_xml.cc:67