KWStyle - itkExceptionObject.cxx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkExceptionObject.cxx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:35 $
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      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 DEF =========================================================================*/
17 #include "itkExceptionObject.h"
18 #include "itkIndent.h"
19
20 namespace itk
21 {
22
23 void
24 ExceptionObject
25 ::Print(std::ostream& os) const
26 {
27   Indent indent;
28
29   // Print header
30   os << std::endl;
31   os << indent << "itk::" << this->GetNameOfClass() << " (" << this << ")\n";
32
33   // Print self
34   indent.GetNextIndent();
35   if (! m_Location.empty()) 
36     {
37     os << indent << "Location: \"" << m_Location << "\" " << std::endl;
38     }
39   
40   if (! m_File.empty()) 
41     {
42     os << indent << "File: " << m_File << std::endl;
43     os << indent << "Line: " << m_Line << std::endl;
44     }
45   
46   if (! m_Description.empty()) 
47     {
48     os << indent << "Description: " << m_Description << std::endl;  
49     }
50
51   // Print trailer
52   os << indent << std::endl;
53 }  
54
55 // end namespace itk
56

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