IGSTK
|
00001 /*========================================================================= 00002 00003 Program: Image Guided Surgery Software Toolkit 00004 Module: $RCSfile: igstkLogger.h,v $ 00005 Language: C++ 00006 Date: $Date: 2008-02-11 01:41:50 $ 00007 Version: $Revision: 1.6 $ 00008 00009 Copyright (c) ISC Insight Software Consortium. All rights reserved. 00010 See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __igstkLogger_h 00018 #define __igstkLogger_h 00019 00020 #include "itkLogger.h" 00021 #include "igstkMacros.h" 00022 #include "itkObject.h" 00023 00024 namespace igstk 00025 { 00036 class Logger : public ::itk::Logger 00037 { 00038 public: 00040 typedef Logger Self; 00041 typedef ::itk::Logger Superclass; 00042 typedef ::itk::SmartPointer< Self > Pointer; 00043 typedef ::itk::SmartPointer< const Self > ConstPointer; 00044 00049 virtual const char* GetNameOfClass() const 00050 { 00051 return "Logger"; 00052 } 00053 00055 static Pointer New(void) 00056 { 00057 Pointer smartPtr; 00058 Self *rawPtr = new Self; 00059 smartPtr = rawPtr; 00060 rawPtr->UnRegister(); 00061 return smartPtr; 00062 } 00063 00067 virtual bool ShouldBuildMessage(PriorityLevelType message_level); 00068 00069 protected: 00070 00072 Logger(); 00073 00075 virtual ~Logger(); 00076 00077 }; // Logger 00078 00079 } // namespace igstk 00080 00081 #endif // __igstkLogger_h