Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkTextOutput.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTextOutput.h,v $
00005   Language:  C++
00006   Date:      $Date: 2006/06/23 02:33:27 $
00007   Version:   $Revision: 1.5 $
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 __itkTextOutput_h
00018 #define __itkTextOutput_h
00019 
00020 #include "itkOutputWindow.h"
00021 #include "itkObjectFactory.h"
00022 
00023 namespace itk
00024 {
00025 
00026 // this class is used to send output to stdout and not the itk window
00027 class ITKCommon_EXPORT TextOutput : public OutputWindow
00028 {
00029 public:
00030   typedef TextOutput                Self;
00031   typedef SmartPointer<Self>        Pointer;
00032   typedef SmartPointer<const Self>  ConstPointer;
00033   itkNewMacro(TextOutput);
00034   virtual void DisplayText(const char* s)
00035     { std::cout << s << std::endl; }
00036 
00037 protected:
00038   TextOutput();
00039   virtual ~TextOutput();
00040 
00041 private:
00042   TextOutput(const Self&); //purposely not implemented
00043   void operator=(const Self&); //purposely not implemented
00044 };
00045 
00046 
00047 }
00048 
00049 
00050 #endif
00051 

Generated at Sun Sep 23 14:24:16 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000