Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkThreadSafeLog Class Reference

Saves tag/float entries. More...

#include <vtkThreadSafeLog.h>

Inheritance diagram for vtkThreadSafeLog:

Inheritance graph
[legend]
Collaboration diagram for vtkThreadSafeLog:

Collaboration graph
[legend]
List of all members.

Public Methods

const char * GetClassName ()
void StartTimer ()
void StopTimer ()
double GetElapsedTime ()
void AddEntry (char *tag, float value)
void DumpLog (char *filename, int mode=ios::out)

Static Public Methods

vtkThreadSafeLog * New ()

Protected Methods

 vtkThreadSafeLog ()
 ~vtkThreadSafeLog ()
 vtkThreadSafeLog (const vtkThreadSafeLog &)
void operator= (const vtkThreadSafeLog &)

Protected Attributes

char * Tags [VTK_THREAD_SAFE_LOG_MAX]
float Values [VTK_THREAD_SAFE_LOG_MAX]
int NumberOfEntries
vtkTimerLogTimer

Detailed Description

Saves tag/float entries.

Date:
2000/10/05 13:31:55
Revision:
1.1

For timing Port stuff. Float values are saved with associated string tags.


Member Function Documentation

void vtkThreadSafeLog::AddEntry char *    tag,
float    value
 

Save a tag/value pair.

void vtkThreadSafeLog::DumpLog char *    filename,
int    mode = ios::out
 

Write the timing table out to a file. if mode is out, then two lines are printed: Tags on first, values on second. If mode is iso::app, then only the line with values is printed.

const char* vtkThreadSafeLog::GetClassName   [inline, virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

vtkThreadSafeLog* vtkThreadSafeLog::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

void vtkThreadSafeLog::StartTimer   [inline]
 

some of the timeing features of vtkTimerLog.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:33:45 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002