ARTS
2.2.66
|
Implementation of agendas. More...
#include <map>
#include <iostream>
#include "messages.h"
#include "agenda_record.h"
#include "wsv_aux.h"
#include "workspace_ng.h"
Go to the source code of this file.
Namespaces | |
global_data | |
Functions | |
void | define_agenda_map () |
bool | check_agenda_data () |
Check that agendas.cc and workspace.cc are consistent. More... | |
ostream & | operator<< (ostream &os, const AgRecord &agr) |
Output operator for AgRecord. More... | |
ostream & | operator<< (ostream &os, const WsvRecord &wr) |
Output operator for WsvRecord. More... | |
void | write_agenda_wrapper_header (ofstream &ofs, const AgRecord &agr) |
Write a agenda wrapper header. More... | |
Variables | |
map< String, Index > | global_data::AgendaMap |
The map associated with agenda_data. More... | |
const Array< AgRecord > | global_data::agenda_data |
The lookup information for the agendas. More... | |
const ArrayOfString | global_data::wsv_group_names |
The names associated with Wsv groups as Strings. More... | |
bool check_agenda_data | ( | ) |
Check that agendas.cc and workspace.cc are consistent.
This functions makes sure, that there is a matching entry in both lookup tables for each agenda.
If the function returns at all, it will return true. The return value is only there so that we can put the function call in an assert statement.
Definition at line 122 of file agenda_record.cc.
References global_data::agenda_data, global_data::AgendaMap, DEBUG_ONLY, get_wsv_group_id(), AgRecord::Name(), Array< base >::nelem(), Workspace::wsv_data, and Workspace::WsvMap.
Referenced by main().
void define_agenda_map | ( | ) |
Definition at line 100 of file agenda_record.cc.
References global_data::agenda_data, and global_data::AgendaMap.
Referenced by main().
ostream& operator<< | ( | ostream & | os, |
const AgRecord & | agr | ||
) |
Output operator for AgRecord.
os | Output stream. |
agr | Agenda record. |
Definition at line 188 of file agenda_record.cc.
References AgRecord::Description(), AgRecord::In(), AgRecord::Name(), Array< base >::nelem(), AgRecord::Out(), and Workspace::wsv_data.
ostream& operator<< | ( | ostream & | os, |
const WsvRecord & | wr | ||
) |
Output operator for WsvRecord.
This has to be here rather than with workspace.cc or workspace_aux.cc, because it uses agenda_data and AgendaMap.
os | Output stream. |
wr | Workspace variable record. |
Definition at line 238 of file agenda_record.cc.
References global_data::agenda_data, global_data::AgendaMap, WsvRecord::Description(), get_wsv_group_id(), WsvRecord::Group(), WsvRecord::Name(), and global_data::wsv_group_names.
void write_agenda_wrapper_header | ( | ofstream & | ofs, |
const AgRecord & | agr | ||
) |
Write a agenda wrapper header.
ofs | The stream to write to. |
agr | Agenda record. |
Definition at line 282 of file agenda_record.cc.
References AgRecord::In(), AgRecord::Name(), AgRecord::Out(), Workspace::wsv_data, and global_data::wsv_group_names.
Referenced by main().