00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkXMLFileOutputWindow.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006-03-18 18:06:38 $ 00007 Version: $Revision: 1.8 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/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 __itkXMLFileOutputWindow_h 00018 #define __itkXMLFileOutputWindow_h 00019 00020 #include "itkFileOutputWindow.h" 00021 00022 namespace itk 00023 { 00047 class ITKCommon_EXPORT XMLFileOutputWindow : public FileOutputWindow 00048 { 00049 public: 00051 typedef XMLFileOutputWindow Self; 00052 typedef FileOutputWindow Superclass; 00053 typedef SmartPointer<Self> Pointer; 00054 typedef SmartPointer<const Self> ConstPointer; 00055 00057 itkNewMacro(Self); 00058 00060 itkTypeMacro(XMLFileOutputWindow, FileOutputWindow); 00061 00063 virtual void DisplayText(const char*); 00064 00066 virtual void DisplayErrorText(const char*); 00067 00069 virtual void DisplayWarningText(const char*); 00070 00072 virtual void DisplayGenericOutputText(const char*); 00073 00075 virtual void DisplayDebugText(const char*); 00076 00078 virtual void DisplayTag(const char*); 00079 00080 protected: 00081 XMLFileOutputWindow(); 00082 virtual ~XMLFileOutputWindow(); 00083 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00084 void Initialize(); 00085 virtual void DisplayXML(const char*, const char*); 00086 00087 private: 00088 XMLFileOutputWindow(const Self&); //purposely not implemented 00089 void operator=(const Self&); //purposely not implemented 00090 00091 }; 00092 00093 } // end namespace itk 00094 00095 #endif 00096