KWStyle - itkLogOutput.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkLogOutput.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:41 $
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 =========================================================================*/
17
18 DEF #ifndef __itk_LogOutput_h_
19 DEF #define __itk_LogOutput_h_
20
21 #include<string>
22 #include"itkMacro.h"
23 #include"itkObject.h"
24 #include"itkObjectFactory.h"
25
26
27 namespace itk
28 {
29
30 /** \class LogOutput
31  *  \brief Class LogOutput represents an output stream.
32  *
33  *  \author Hee-Su Kim, Compute Science Dept. Kyungpook National University,
34  *                      ISIS Center, Georgetown University.
35  *
36  *  \ingroup OSSystemObjects LoggingObjects                    
37  */
38
39 class ITKCommon_EXPORT LogOutput : public Object
40 {
41
42 public:
43
44   typedef LogOutput Self;
45 TDA   typedef Object  Superclass;
46 TDA   typedef SmartPointer<Self>  Pointer;
47 TDA   typedef SmartPointer<const Self>  ConstPointer;
48   
49   /** flush a buffer */
50   virtual void Flush() = 0;
51
52   /** Write to a buffer */
53   virtual void Write( double timestamp ) = 0;
54
55   /** Write to a buffer */
56   virtual void Write(const std::string & content ) = 0;
57
58   /** Write to a buffer */
59   virtual void Write(const std::string & content, double timestamp) = 0;
60
61 protected:
62   
63   /** Destructor */
64   LogOutput() {};
65
66   /** Destructor */
67   virtual ~LogOutput() {};
68
69 };
70
71 }
72
73 #endif //__itk_LogOutput_h_
74

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