NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkLogHelper.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkLogHelper_h
16 #define itkLogHelper_h
17 
18 #include <NifTKConfigure.h>
20 
21 #include <iostream>
22 #include <itkObject.h>
23 #include <itkObjectFactory.h>
24 #include <itkIndent.h>
25 #include "itkUCLMacro.h"
26 
27 
28 namespace niftk {
29 
34 class NIFTKITK_WINEXPORT ITK_EXPORT itkLogHelper : public itk::Object
35 {
36 
37  public:
38 
42  typedef itkLogHelper Self;
43  typedef itk::Object Superclass;
44  typedef itk::SmartPointer<Self> Pointer;
45  typedef itk::SmartPointer<const Self> ConstPointer;
46 
47  /* Method for creation through the object factory. */
48  itkNewMacro(Self);
49 
53  itkTypeMacro(itkLogHelper, Object);
54 
55  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
56 
60  static void SetLogLevel(int logginglevel);
61 
65  void InfoMessage(const std::string& infoMessage);
66 
70  void DebugMessage(const std::string& debugMessage);
71 
75  void WarningMessage(const std::string& warningMessage);
76 
80  void ErrorMessage(const std::string& errorMessage);
81 
85  void ExceptionMessage(const std::string& exceptionMessage);
86 
90  static void PrintCommandLineHeader(std::ostream& stream);
91 
93  static std::string WriteParameterArray(const itk::Array<double>& array);
94 
96  std::string ToString();
97 
98  protected:
99  itkLogHelper();
100  virtual ~itkLogHelper();
101 
102  private:
103  itkLogHelper(const Self&); //purposely not implemented
104  void operator=(const Self&); //purposely not implemented
105 
106 }; //end of class itkLogHelper
107 
108 } //end of namespace niftk
109 
110 #endif
itkLogHelper Self
Definition: itkLogHelper.h:42
#define NIFTKITK_WINEXPORT
Definition: niftkITKWin32ExportHeader.h:28
GLuint GLuint stream
Definition: glew.h:6079
GLenum array
Definition: glew.h:7829
itk::SmartPointer< const Self > ConstPointer
Definition: itkLogHelper.h:45
This is a class to help with a few logging functions.
Definition: itkLogHelper.h:34
itk::SmartPointer< Self > Pointer
Definition: itkLogHelper.h:44
itk::Object Superclass
Definition: itkLogHelper.h:43
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194