ARTS  1.0.222
Classes | Functions | Variables
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. More...
 
template<class T >
Out0operator<< (Out0 &os, const T &t)
 Output operator for Out0. More...
 
template<class T >
Out1operator<< (Out1 &os, const T &t)
 Output operator For Out1. More...
 
template<class T >
Out2operator<< (Out2 &os, const T &t)
 Output operator For Out2. More...
 
template<class T >
Out3operator<< (Out3 &os, const T &t)
 Output operator For Out3. More...
 

Variables

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

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

◆ MessagePrint()

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

Print a message to stream and report file.

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

Parameters
osStream to print to (cout or cerr).
priorityPriority of this message (0-3, 0=highest).
tThe stuff to print (can be of any type).
Author
Stefan Buehler
See also
Messages

Definition at line 85 of file messages.h.

◆ operator<<() [1/4]

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

Output operator for Out0.

Definition at line 145 of file messages.h.

◆ operator<<() [2/4]

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

Output operator For Out1.

Definition at line 153 of file messages.h.

◆ operator<<() [3/4]

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

Output operator For Out2.

Definition at line 162 of file messages.h.

◆ operator<<() [4/4]

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

Output operator For Out3.

Definition at line 170 of file messages.h.

Variable Documentation

◆ out0

Out0 out0
extern

Level 0 output stream.

See also
OutStream

Definition at line 50 of file messages.cc.

◆ out1

Out1 out1
extern

Level 1 output stream.

See also
OutStream

Definition at line 52 of file messages.cc.

◆ out2

Out2 out2
extern

Level 2 output stream.

See also
OutStream

Definition at line 54 of file messages.cc.

◆ out3

Out3 out3
extern

Level 3 output stream.

See also
OutStream

Definition at line 56 of file messages.cc.