KWStyle - itkLoggerOutput.cxx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkLoggerOutput.cxx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:41 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12   Portions of this code are covered under the VTK copyright.
13   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even 
16      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
17 IND *****PURPOSE.  See the above copyright notices for more information.
18
19 DEF =========================================================================*/
20
21 #include"itkLoggerOutput.h"
22
23
24 namespace itk
25 {
26 /** Send a string to display. */
27 void LoggerOutput::DisplayText(const char* t)
28 {
29   if( this->m_Logger )
30 IND **{
31     this->m_Logger->Write(LoggerBase::INFO, t);
32 IND **}
33 }
34
35
36 /** Send a string as an error message to display.
37  * The default implementation calls DisplayText() but subclasses
38  * could present this message differently. */
39 void LoggerOutput::DisplayErrorText(const char *t)
40 {
41   if( this->m_Logger )
42 IND **{
43     this->m_Logger->Write(LoggerBase::CRITICAL, t);
44 IND **}
45 }
46
47
48 /** Send a string as a warningmessage to display.
49  * The default implementation calls DisplayText() but subclasses
50  * could present this message differently. */
51 void LoggerOutput::DisplayWarningText(const char *t)
52 {
53   if( this->m_Logger )
54 IND **{
55     this->m_Logger->Write(LoggerBase::WARNING, t);
56 IND **}
57 }
58
59
60 /** Send a string as a message to display.
61  * The default implementation calls DisplayText() but subclasses
62  * could present this message differently. */
63 void LoggerOutput::DisplayGenericOutputText(const char *t)
64 {
65   if( this->m_Logger )
66 IND **{
67     this->m_Logger->Write(LoggerBase::INFO, t);
68 IND **}
69 }
70
71
72 /** Send a string as a debug message to display.
73  * The default implementation calls DisplayText() but subclasses
74  * could present this message differently. */
75 void LoggerOutput::DisplayDebugText(const char *t)
76 {
77   if( this->m_Logger )
78 IND **{
79     this->m_Logger->Write(LoggerBase::DEBUG, t);
80 IND **}
81 }
82
83 void LoggerOutput::PrintSelf(std::ostream &os, Indent indent) const
84 {
85   Superclass::PrintSelf(os,indent);
86 SEM   os << indent << "Logger: " << m_Logger << std::endl;;
87 }
88   
89 // end namespace itk
90
91 EOF
92 EOF,EML

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:20PM
© Kitware Inc.