ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkXMLFileOutputWindow.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkXMLFileOutputWindow_h
00019 #define __itkXMLFileOutputWindow_h
00020 
00021 #include "itkFileOutputWindow.h"
00022 
00023 namespace itk
00024 {
00049 class ITKCommon_EXPORT XMLFileOutputWindow:public FileOutputWindow
00050 {
00051 public:
00053   typedef XMLFileOutputWindow        Self;
00054   typedef FileOutputWindow           Superclass;
00055   typedef SmartPointer< Self >       Pointer;
00056   typedef SmartPointer< const Self > ConstPointer;
00057 
00059   itkNewMacro(Self);
00060 
00062   itkTypeMacro(XMLFileOutputWindow, FileOutputWindow);
00063 
00065   virtual void DisplayText(const char *);
00066 
00068   virtual void DisplayErrorText(const char *);
00069 
00071   virtual void DisplayWarningText(const char *);
00072 
00074   virtual void DisplayGenericOutputText(const char *);
00075 
00077   virtual void DisplayDebugText(const char *);
00078 
00080   virtual void DisplayTag(const char *);
00081 
00082 protected:
00083   XMLFileOutputWindow();
00084   virtual ~XMLFileOutputWindow();
00085   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00086 
00087   void Initialize();
00088 
00089   virtual void DisplayXML(const char *, const char *);
00090 
00091 private:
00092   XMLFileOutputWindow(const Self &); //purposely not implemented
00093   void operator=(const Self &);      //purposely not implemented
00094 };
00095 } // end namespace itk
00096 
00097 #endif
00098