Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Parallel/vtkMultiProcessLog.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMultiProcessLog.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00025 #ifndef __vtkMultiProcessLog_h
00026 #define __vtkMultiProcessLog_h
00027 
00028 
00029 #include "vtkObject.h"
00030 
00031 class vtkThreadSafeLog;
00032 
00033 #define VTK_MULTI_PROCESS_LOG_MAX 1000
00034 
00035 class VTK_PARALLEL_EXPORT vtkMultiProcessLog : public vtkObject
00036 {
00037 public:
00038   static vtkMultiProcessLog *New();
00039   vtkTypeRevisionMacro(vtkMultiProcessLog,vtkObject);
00040   virtual void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00046   static void SetTimerLog(vtkThreadSafeLog *log);
00047   static vtkThreadSafeLog *GetTimerLog();
00049 
00051   static void DumpLog(char *filename);
00052 
00053 protected:
00054 
00055   vtkMultiProcessLog() {}; //insure constructur/destructor protected
00056   ~vtkMultiProcessLog() {};
00057 
00058 private:
00059   vtkMultiProcessLog(const vtkMultiProcessLog&);  // Not implemented.
00060   void operator=(const vtkMultiProcessLog&);  // Not implemented.
00061 };
00062 
00063 
00064 
00065 #endif