00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <iostream>
00019 #include "arts.h"
00020 #include "matpackII.h"
00021 #include "xml_io.h"
00022 #include "exceptions.h"
00023 #include "absorption.h"
00024
00025 extern Array<SpeciesRecord> species_data;
00026
00027 int
00028 main (int , char * [])
00029 {
00030 define_species_data ();
00031 try
00032 {
00033 xml_write_to_file ("sdata1.xml", species_data);
00034 cout << "Wrote species_data: " << endl;
00035
00036 species_data.clear ();
00037
00038 xml_read_from_file ("sdata1.xml", species_data);
00039 cout << "Read species_data: " << endl;
00040
00041 xml_write_to_file ("sdata2.xml", species_data);
00042 cout << "Wrote species_data: " << endl;
00043 }
00044 catch (runtime_error e)
00045 {
00046 cerr << e.what ();
00047 }
00048
00049 return (0);
00050 }