agenda_record.cc File Reference

Implementation of agendas. More...

#include <map>
#include <iostream>
#include "messages.h"
#include "agenda_record.h"
#include "wsv_aux.h"
#include "workspace_ng.h"

Include dependency graph for agenda_record.cc:

Go to the source code of this file.

Functions

void define_agenda_map ()
bool check_agenda_data ()
 Check that agendas.cc and workspace.cc are consistent.
ostream & operator<< (ostream &os, const AgRecord &agr)
 Output operator for AgRecord.
ostream & operator<< (ostream &os, const WsvRecord &wr)
 Output operator for WsvRecord.
void write_agenda_wrapper_header (ofstream &ofs, const AgRecord &agr)
 Write a agenda wrapper header.


Detailed Description

Implementation of agendas.

Author:
Stefan Buehler <sbuehler@ltu.se>
Date:
Thu Mar 14 08:49:33 2002

Definition in file agenda_record.cc.


Function Documentation

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 agenda_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 93 of file agenda_record.cc.

References agenda_data, AgendaMap, and Array< base >::nelem().

Referenced by main().

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:
os Output stream.
wr Workspace variable record.
Returns:
Output stream.

Definition at line 236 of file agenda_record.cc.

References agenda_data, AgendaMap, WsvRecord::Description(), get_wsv_group_id(), WsvRecord::Group(), WsvRecord::Name(), and wsv_group_names.

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

Output operator for AgRecord.

Parameters:
os Output stream.
agr Agenda record.
Returns:
Output stream.

Definition at line 181 of file agenda_record.cc.

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

void write_agenda_wrapper_header ( ofstream &  ofs,
const AgRecord agr 
)

Write a agenda wrapper header.

Parameters:
ofs The stream to write to.
agr Agenda record.

Definition at line 279 of file agenda_record.cc.

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

Referenced by main().


Generated on Mon Mar 23 14:06:30 2009 for ARTS by  doxygen 1.5.6