messages.h File Reference

Declarations having to do with the four output streams. More...

#include <iostream>
#include <fstream>
#include "arts.h"

Go to the source code of this file.

Classes

class  Messages
 The verbosity level for screen and file output. More...
class  Out0
 Highest priority output stream. More...
class  Out1
 Engine output stream. More...
class  Out2
 Medium priority output stream. More...
class  Out3
 Lowest priority output stream. More...

Functions

template<class T>
void MessagePrint (ostream &os, Index priority, const T &t)
 Print a message to stream and report file.
template<class T>
Out0operator<< (Out0 &os, const T &t)
 Output operator for Out0.
template<class T>
Out1operator<< (Out1 &os, const T &t)
 Output operator For Out1.
template<class T>
Out2operator<< (Out2 &os, const T &t)
 Output operator For Out2.
template<class T>
Out3operator<< (Out3 &os, const T &t)
 Output operator For Out3.

Variables

Out0 out0
 Level 0 output stream.
Out1 out1
 Level 1 output stream.
Out2 out2
 Level 2 output stream.
Out3 out3
 Level 3 output stream.


Detailed Description

Declarations having to do with the four output streams.

ARTS uses four output streams: out0 to out3, where out0 has the highest priority, out3 the lowest. These are global variables. They are intended to be used as follows:

The classes associated with the four output stream variables have the same name, but start with a capital letter: Out0, Out1, Out2, and Out3.

Author:
Stefan Buehler
Date:
2000-07-31

Definition in file messages.h.


Function Documentation

template<class T>
void MessagePrint ( ostream &  os,
Index  priority,
const T &  t 
) [inline]

Print a message to stream and report file.

The message is printed only if the priority is higher than specified in messages.

Parameters:
os Stream to print to (cout or cerr).
priority Priority of this message (0-3, 0=highest).
t The stuff to print (can be of any type).
Author:
Stefan Buehler
See also:
Messages

Definition at line 85 of file messages.h.

template<class T>
Out3& operator<< ( Out3 os,
const T &  t 
) [inline]

Output operator For Out3.

Definition at line 170 of file messages.h.

template<class T>
Out2& operator<< ( Out2 os,
const T &  t 
) [inline]

Output operator For Out2.

Definition at line 162 of file messages.h.

template<class T>
Out1& operator<< ( Out1 os,
const T &  t 
) [inline]

Output operator For Out1.

Definition at line 153 of file messages.h.

template<class T>
Out0& operator<< ( Out0 os,
const T &  t 
) [inline]

Output operator for Out0.

Definition at line 145 of file messages.h.


Variable Documentation

Level 0 output stream.

See also:
OutStream

Definition at line 50 of file messages.cc.

Level 1 output stream.

See also:
OutStream

Definition at line 52 of file messages.cc.

Level 2 output stream.

See also:
OutStream

Definition at line 54 of file messages.cc.

Level 3 output stream.

See also:
OutStream

Definition at line 56 of file messages.cc.


Generated on Wed Feb 4 08:17:25 2009 for ARTS by  doxygen 1.5.6