00001 /* Copyright (C) 2000-2008 Stefan Buehler <sbuehler@ltu.se> 00002 00003 This program is free software; you can redistribute it and/or modify it 00004 under the terms of the GNU General Public License as published by the 00005 Free Software Foundation; either version 2, or (at your option) any 00006 later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 00016 USA. */ 00017 00028 #include "arts.h" 00029 #include "mystring.h" 00030 #include "array.h" 00031 00039 bool in_main_agenda=true; 00040 #pragma omp threadprivate(in_main_agenda) 00041 00042 #include "messages.h" 00043 00044 // The global message verbosity settings: 00045 Messages arts_messages; 00046 00048 String out_path; 00049 00053 String out_basename; 00054 00056 ofstream report_file; 00057 00062 bool Messages::valid() 00063 { 00064 if (va<0 || va>3) return false; 00065 if (vs<0 || vs>3) return false; 00066 if (vf<0 || vf>3) return false; 00067 00068 return true; 00069 } 00070 00071 00073 00077 bool Messages::sufficient_priority_agenda(Index priority) 00078 { 00079 return va >= priority; 00080 } 00081 00082 00084 00088 bool Messages::sufficient_priority_screen(Index priority) 00089 { 00090 return vs >= priority; 00091 } 00092 00093 00095 00099 bool Messages::sufficient_priority_file(Index priority) 00100 { 00101 return vf >= priority; 00102 } 00103 00104 //--------------------< The different output streams >-------------------- 00105 00107 Out0 out0; 00109 Out1 out1; 00111 Out2 out2; 00113 Out3 out3;