Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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 AddEntry (char *tag, float value)
void DumpLog (char *filename, int mode=ios::out)
void StartTimer ()
void StopTimer ()
double GetElapsedTime ()

Static Public Methods

vtkThreadSafeLog * New ()

Protected Methods

 vtkThreadSafeLog ()
 ~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:
2001/10/11 13:38:01
Revision:
1.4

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

Definition at line 58 of file vtkThreadSafeLog.h.


Constructor & Destructor Documentation

vtkThreadSafeLog::vtkThreadSafeLog   [protected]
 

vtkThreadSafeLog::~vtkThreadSafeLog   [protected]
 


Member Function Documentation

vtkThreadSafeLog* vtkThreadSafeLog::New   [static]
 

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

Reimplemented from vtkObject.

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.

Definition at line 62 of file vtkThreadSafeLog.h.

void vtkThreadSafeLog::StartTimer   [inline]
 

some of the timeing features of vtkTimerLog.

Definition at line 66 of file vtkThreadSafeLog.h.

void vtkThreadSafeLog::StopTimer   [inline]
 

some of the timeing features of vtkTimerLog.

Definition at line 67 of file vtkThreadSafeLog.h.

double vtkThreadSafeLog::GetElapsedTime   [inline]
 

some of the timeing features of vtkTimerLog.

Definition at line 68 of file vtkThreadSafeLog.h.

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.


Member Data Documentation

char* vtkThreadSafeLog::Tags[VTK_THREAD_SAFE_LOG_MAX] [protected]
 

Definition at line 85 of file vtkThreadSafeLog.h.

float vtkThreadSafeLog::Values[VTK_THREAD_SAFE_LOG_MAX] [protected]
 

Definition at line 86 of file vtkThreadSafeLog.h.

int vtkThreadSafeLog::NumberOfEntries [protected]
 

Definition at line 87 of file vtkThreadSafeLog.h.

vtkTimerLog* vtkThreadSafeLog::Timer [protected]
 

Definition at line 89 of file vtkThreadSafeLog.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:43:54 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001