#include <iostream>
#include <stdexcept>
#include "messages.h"
#include "ppath.h"
#include "special_interp.h"
#include "mystring.h"
Go to the source code of this file.
Classes | |
struct | Timer |
Defines | |
#define | SWITCH_OUTPUT(x, y) |
Functions | |
template<typename T> | |
void | Print (const T &x, const Index &level) |
WORKSPACE METHOD: Print. | |
void | Print (Workspace &ws, const Agenda &x, const Index &level) |
void | Print (const ArrayOfGridPos &x, const Index &level) |
void | Print (const Ppath &ppath, const Index &level) |
void | Print (const Timer &x, const Index &level) |
void | PrintWorkspace (Workspace &ws, const Index &only_allocated, const Index &level) |
Definition in file m_general.h.
#define SWITCH_OUTPUT | ( | x, | |||
y | ) |
Value:
switch (x) { \ case 0: out0 << y << "\n";break; \ case 1: out1 << y << "\n";break; \ case 2: out2 << y << "\n";break; \ case 3: out3 << y << "\n";break; \ default: throw runtime_error ("Output level must have value from 0-3"); \ }
Definition at line 52 of file m_general.h.
Referenced by Print(), and PrintWorkspace().
Definition at line 199 of file m_general.cc.
Definition at line 130 of file m_general.cc.
References Ppath::background, Ppath::constant, Ppath::dim, Ppath::geom_tan_pos, Ppath::gp_lat, Ppath::gp_lon, Ppath::gp_p, Ppath::l_step, Ppath::los, Ppath::method, ConstVectorView::nelem(), Ppath::np, Ppath::pos, Print(), Ppath::refraction, SWITCH_OUTPUT, Ppath::tan_pos, and Ppath::z.
void Print | ( | const ArrayOfGridPos & | x, | |
const Index & | level | |||
) |
Definition at line 86 of file m_general.cc.
References Array< base >::nelem(), Print(), and SWITCH_OUTPUT.
void Print | ( | const T & | gin1, | |
const Index & | level | |||
) | [inline] |
WORKSPACE METHOD: Print.
Prints a variable on the screen.
Keywords: <br> level : Output level to use.
[in] | gin1 | Generic Input |
[in] | level | Generic Input (Default: "1") |
Definition at line 70 of file m_general.h.
References SWITCH_OUTPUT.
Referenced by Print(), Print_sg_Agenda_g(), Print_sg_ArrayOfArrayOfArrayOfArrayOfGridPos_g(), Print_sg_ArrayOfArrayOfGField1_g(), Print_sg_ArrayOfArrayOfGField3_g(), Print_sg_ArrayOfArrayOfIndex_g(), Print_sg_ArrayOfArrayOfLineRecord_g(), Print_sg_ArrayOfArrayOfMatrix_g(), Print_sg_ArrayOfArrayOfSpeciesTag_g(), Print_sg_ArrayOfArrayOfTensor3_g(), Print_sg_ArrayOfArrayOfTensor6_g(), Print_sg_ArrayOfGField1_g(), Print_sg_ArrayOfGField2_g(), Print_sg_ArrayOfGField3_g(), Print_sg_ArrayOfGField4_g(), Print_sg_ArrayOfIndex_g(), Print_sg_ArrayOfLineRecord_g(), Print_sg_ArrayOfLineshapeSpec_g(), Print_sg_ArrayOfMatrix_g(), Print_sg_ArrayOfPpath_g(), Print_sg_ArrayOfRetrievalQuantity_g(), Print_sg_ArrayOfSingleScatteringData_g(), Print_sg_ArrayOfString_g(), Print_sg_ArrayOfTensor3_g(), Print_sg_ArrayOfTensor4_g(), Print_sg_ArrayOfTensor6_g(), Print_sg_ArrayOfTensor7_g(), Print_sg_ArrayOfVector_g(), Print_sg_GasAbsLookup_g(), Print_sg_GField1_g(), Print_sg_GField2_g(), Print_sg_GField3_g(), Print_sg_GField4_g(), Print_sg_GridPos_g(), Print_sg_Index_g(), Print_sg_Matrix_g(), Print_sg_MCAntenna_g(), Print_sg_Numeric_g(), Print_sg_Ppath_g(), Print_sg_SingleScatteringData_g(), Print_sg_SLIData2_g(), Print_sg_Sparse_g(), Print_sg_String_g(), Print_sg_Tensor3_g(), Print_sg_Tensor4_g(), Print_sg_Tensor5_g(), Print_sg_Tensor6_g(), Print_sg_Tensor7_g(), Print_sg_Timer_g(), and Print_sg_Vector_g().
Definition at line 215 of file m_general.cc.
References Workspace::is_initialized(), Workspace::nelem(), PrintWsvName(), and SWITCH_OUTPUT.
Referenced by PrintWorkspace_g().