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

itkProbesCollectorBase.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkProbesCollectorBase.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-04-05 16:50:25 $
00007   Version:   $Revision: 1.2 $
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 __itkProbesCollectorBase_h
00018 #define __itkProbesCollectorBase_h
00019 
00020 #include "itkConfigure.h"
00021 
00022 #include "itkProbe.h"
00023 #include "itkMemoryUsageObserver.h"
00024 
00025 namespace itk
00026 {
00027   
00037 template <class TProbe>
00038 class ITK_EXPORT ProbesCollectorBase 
00039 {
00040 public:
00041   typedef std::string               IdType;
00042   typedef std::map<IdType,TProbe>   MapType;
00043   
00045   virtual ~ProbesCollectorBase();
00046 
00049   virtual void Start( const char * name );
00050 
00052   virtual void Stop( const char * name );
00053 
00055   virtual void Report( std::ostream & os = std::cout ) const;
00056 
00058   virtual void Clear(void);
00059 
00060 protected:
00061   MapType   m_Probes;
00062 };
00063 
00064 } // end namespace itk
00065 
00066 #ifndef ITK_MANUAL_INSTANTIATION
00067 #include "itkProbesCollectorBase.txx"
00068 #endif
00069 
00070 #endif //__itkProbesCollectorBase_h
00071 

Generated at Mon Apr 14 14:02:24 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000