KWStyle - itkTextOutput.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkTextOutput.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:48 $
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 "itkOutputWindow.h"
18 #include "itkObjectFactory.h"
19
20 namespace itk
21 {
22
23 // this class is used to send output to stdout and not the itk window
24 class ITKCommon_EXPORT TextOutput : public OutputWindow
25 {
26 public:
27   typedef TextOutput                Self;
28   typedef SmartPointer<Self>        Pointer;
29   typedef SmartPointer<const Self>  ConstPointer;
30   itkNewMacro(TextOutput);
31   virtual void DisplayText(const char* s)
32     { std::cout << s << std::endl; }
33
34 protected:
35   TextOutput();
36   virtual ~TextOutput();
37
38 private:
39   TextOutput(const Self&); //purposely not implemented
40   void operator=(const Self&); //purposely not implemented
41 };
42
43
44 }
45
46 EOF
47 EOF,EML

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