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

itkMultipleLogOutput.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMultipleLogOutput.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-06 20:53:10 $
00007   Version:   $Revision: 1.6 $
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 
00018 #ifndef __itkMultipleLogOutput_h
00019 #define __itkMultipleLogOutput_h
00020 
00021 #include "itkLogOutput.h"
00022 
00023 #include <fstream>
00024 #include <set>
00025 
00026 namespace itk
00027 {
00028 
00040 class ITKCommon_EXPORT MultipleLogOutput : public LogOutput
00041 {
00042 
00043 public:
00044 
00045   typedef MultipleLogOutput         Self;
00046   typedef LogOutput                 Superclass;
00047   typedef SmartPointer<Self>        Pointer;
00048   typedef SmartPointer<const Self>  ConstPointer;
00049 
00050   typedef LogOutput                 OutputType;
00051 
00052   itkTypeMacro(MultipleLogOutput, LogOutput);
00053   itkNewMacro(MultipleLogOutput);
00054   
00055 public:
00056 
00060   void AddLogOutput( OutputType * output );
00061 
00062 
00064   virtual void Flush();
00065 
00067   virtual void Write( double timestamp );
00068 
00070   virtual void Write(const std::string & content );
00071 
00073   virtual void Write(const std::string & content, double timestamp );
00074 
00075 
00076 protected:
00078   MultipleLogOutput();
00079 
00081   virtual ~MultipleLogOutput();
00082 
00083 private:
00084   MultipleLogOutput(const Self&); //purposely not implemented
00085   void operator=(const Self&); //purposely not implemented
00086   
00087   typedef std::set< OutputType::Pointer >   ContainerType;
00088 
00089   ContainerType        m_Output;
00090 
00091 };
00092 
00093 }
00094 
00095 #endif //__itkMultipleLogOutput_h
00096 

Generated at Sat Feb 28 13:04:01 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000