lgrPrint.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef lgrPrint_H_
00010 #define lgrPrint_H_
00011 
00012 #include "lgrUtil.h"
00013 #include <stdio.h>
00014 #include <ostream>
00015 #include "lgrPopupBox.h"
00016 
00017 class DtString;
00018 
00019 namespace MAKLogger
00020 {
00021 
00024    class DT_DLL_LGRUTIL DtLgrPrinter
00025    {
00026    public:
00027 
00028 
00029       enum MessageLevelsEnum
00030       {   
00032          Critical = 0,
00033 
00035          Warning = 1,
00036 
00040          Info = 2,
00041 
00043          Verbose = 3,
00044       
00046          Debug = 4
00047       };
00048 
00049       static void setMessageLevel(MessageLevelsEnum);
00050       static MessageLevelsEnum messageLevel();
00051 
00053       static bool messageWillPrint(DtLgrPrinter::MessageLevelsEnum);
00054 
00056       static void critical(const DtString& msg);
00057 
00059       static void warning(const DtString& msg);
00060 
00062       static void info(const DtString& msg);
00063 
00065       static void verbose(const DtString& msg);
00066 
00068       static void debug(const DtString& msg);
00069 
00071       static void message(DtLgrPrinter::MessageLevelsEnum, const DtString&);
00072 
00074       static  void (*messageFunction)(const DtString&);
00075 
00076       static  void DtPrintLineToOutput(const DtString&);
00077       static  void DtPrintToOutput(const DtString&);
00078 
00079       static void outputMutex(bool lock);
00080    };
00081 
00082 }
00083 
00084 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)