1 #ifndef FILE_MSGHANDLER 2 #define FILE_MSGHANDLER 3 4 /**************************************************************************/ 5 /* File: msghandler.hh */ 6 /* Author: Johannes Gerstmayr */ 7 /* Date: 20. Nov. 99 */ 8 /**************************************************************************/ 9 10 11 namespace netgen 12 { 13 14 extern void PrintDot(char ch = '.'); 15 16 17 //Message Pipeline: 18 19 //importance: importance of message: 1=very important, 3=middle, 5=low, 7=unimportant 20 extern DLL_HEADER void PrintMessage(int importance, 21 const MyStr& s1, const MyStr& s2=MyStr()); 22 extern DLL_HEADER void PrintMessage(int importance, 23 const MyStr& s1, const MyStr& s2, const MyStr& s3, const MyStr& s4=MyStr()); 24 extern DLL_HEADER void PrintMessage(int importance, 25 const MyStr& s1, const MyStr& s2, const MyStr& s3, const MyStr& s4, 26 const MyStr& s5, const MyStr& s6=MyStr(), const MyStr& s7=MyStr(), const MyStr& s8=MyStr()); 27 28 // CR without line-feed 29 extern DLL_HEADER void PrintMessageCR(int importance, 30 const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 31 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 32 extern DLL_HEADER void PrintFnStart(const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 33 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 34 extern DLL_HEADER void PrintWarning(const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 35 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 36 extern DLL_HEADER void PrintError(const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 37 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 38 extern DLL_HEADER void PrintFileError(const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 39 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 40 extern DLL_HEADER void PrintSysError(const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 41 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 42 extern DLL_HEADER void PrintUserError(const MyStr& s1, const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 43 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 44 extern DLL_HEADER void PrintTime(const MyStr& s1="", const MyStr& s2="", const MyStr& s3="", const MyStr& s4="", 45 const MyStr& s5="", const MyStr& s6="", const MyStr& s7="", const MyStr& s8=""); 46 extern DLL_HEADER void SetStatMsg(const MyStr& s); 47 48 extern DLL_HEADER void PushStatus(const MyStr& s); 49 extern DLL_HEADER void PushStatusF(const MyStr& s); 50 extern DLL_HEADER void PopStatus(); 51 extern DLL_HEADER void SetThreadPercent(double percent); 52 extern DLL_HEADER void GetStatus(MyStr & s, double & percentage); 53 } 54 55 56 #endif 57 58