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

vtkMultiProcessLog.h

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