ARTS  2.3.1285(git:92a29ea9-dirty)
agenda_record.cc File Reference

Implementation of agendas. More...

#include "agenda_record.h"
#include <iostream>
#include <map>
#include "messages.h"
#include "workspace_ng.h"
#include "wsv_aux.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, bool is_agenda_array)
 Write a agenda wrapper header. More...
 

Variables

map< String, Indexglobal_data::AgendaMap
 The map associated with agenda_data. More...
 
const Array< AgRecordglobal_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...
 

Detailed Description

Implementation of agendas.

Author
Stefan Buehler sbueh.nosp@m.ler@.nosp@m.ltu.s.nosp@m.e
Date
Thu Mar 14 08:49:33 2002

Definition in file agenda_record.cc.

Function Documentation

◆ check_agenda_data()

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.

Returns
Always true.

Definition at line 115 of file agenda_record.cc.

References global_data::agenda_data, global_data::AgendaMap, DEBUG_ONLY, and i.

Referenced by InteractiveWorkspace::initialize(), and main().

◆ define_agenda_map()

void define_agenda_map ( )

Definition at line 95 of file agenda_record.cc.

References global_data::agenda_data, global_data::AgendaMap, and i.

Referenced by InteractiveWorkspace::initialize(), and main().

◆ operator<<() [1/2]

ostream& operator<< ( ostream &  os,
const AgRecord agr 
)

Output operator for AgRecord.

Parameters
osOutput stream.
agrAgenda record.
Returns
Output stream.

Definition at line 177 of file agenda_record.cc.

References AgRecord::Description(), i, AgRecord::In(), AgRecord::Name(), Array< base >::nelem(), AgRecord::Out(), and Workspace::wsv_data.

◆ operator<<() [2/2]

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.

Parameters
osOutput stream.
wrWorkspace variable record.
Returns
Output stream.

Definition at line 229 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.

◆ write_agenda_wrapper_header()

void write_agenda_wrapper_header ( ofstream &  ofs,
const AgRecord agr,
bool  is_agenda_array 
)

Write a agenda wrapper header.

Parameters
ofsThe stream to write to.
agrAgenda record.

Definition at line 270 of file agenda_record.cc.

References AgRecord::In(), AgRecord::Name(), AgRecord::Out(), Workspace::wsv_data, and global_data::wsv_group_names.

Referenced by main().