00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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 };
00078
00079 }
00080
00081 #endif // __igstkLogger_h