62 {
return (
va>=0 &&
va<=3) && (
vs>=0 && vs<=3) && (vf>=0 ||
vf<=3); }
89 : verbosity(v), priority(p) { }
99 return (sufficient_priority_agenda()
100 && (sufficient_priority_screen() || sufficient_priority_file()));
108 return (
in_main_agenda() || verbosity.get_agenda_verbosity() >= priority);
116 return verbosity.get_screen_verbosity() >= priority;
124 return verbosity.get_file_verbosity() >= priority;
132 return verbosity.is_main_agenda();
185 #pragma omp critical (ArtsOut_screen) 196 #pragma omp critical (ArtsOut_file) 199 report_file << t << flush;
211 #define CREATE_OUT0 ArtsOut0 out0(verbosity) 212 #define CREATE_OUT1 ArtsOut1 out1(verbosity) 213 #define CREATE_OUT2 ArtsOut2 out2(verbosity) 214 #define CREATE_OUT3 ArtsOut3 out3(verbosity) 216 #define CREATE_OUTS \ 217 ArtsOut0 out0(verbosity); \ 218 ArtsOut1 out1(verbosity); \ 219 ArtsOut2 out2(verbosity); \ 220 ArtsOut3 out3(verbosity) INDEX Index
The type to use for all integer numbers and indices.
Index get_agenda_verbosity() const
ArtsOut(const int p, const Verbosity &v)
void set_agenda_verbosity(Index v)
bool is_main_agenda() const
Verbosity(Index vagenda, Index vscreen, Index vfile)
ArtsOut1(const Verbosity &v)
bool in_main_agenda() const
Are we in the main agenda?
Index va
Verbosity for agenda output. Can be 0-3.
This file contains the definition of Array.
ArtsOut3(const Verbosity &v)
The global header file for ARTS.
Index vf
Verbosity for output to file. Can be 0-3.
const Verbosity & get_verbosity() const
void set_file_verbosity(Index v)
void set_main_agenda(bool main_agenda)
friend ostream & operator<<(ostream &os, const Verbosity &v)
bool sufficient_priority_agenda() const
Does the current message have sufficient priority for agenda?
ofstream report_file
The report file.
Index vs
Verbosity for output to screen. Can be 0-3.
bool sufficient_priority_file() const
Does the current message have sufficient priority for file?
bool sufficient_priority_screen() const
Does the current message have sufficient priority for screen?
Index get_file_verbosity() const
bool sufficient_priority() const
Does the current message have sufficient priority for output?
ArtsOut0(const Verbosity &v)
ArtsOut2(const Verbosity &v)
Index get_screen_verbosity() const
Header file for helper functions for OpenMP.
bool valid() const
Check if artsmessages contains valid message levels.
void set_screen_verbosity(Index v)