WT_File_Stats Class Reference
[File I/O objects]

#include <file_stats.h>

Collaboration diagram for WT_File_Stats:

Collaboration graph
[legend]
List of all members.

Detailed Description

Collects file usage statistics (during reading.).

Definition at line 33 of file file_stats.h.

Public Member Functions

 WT_File_Stats (WT_File_Stats const &)
WT_File_Statsoperator= (WT_File_Stats const &)
void add_stat (long opcode_index)
 WT_File_Stats (WT_File const *file)
 Constructs a WT_File_Stats object used when reading the given file.
virtual ~WT_File_Stats ()
 Destroys a WT_File_Stats object.
const long opcode_count (int opcode_index) const
 Returns the number of times the given opcode was found in the file.
const long opcode_total_bytes (int opcode_index) const
 Returns the number of bytes occupied by the given opcode in the file.
char const * descriptions (int index=-1) const
 Returns a text description of the given opcode (or an empty string.).


Member Function Documentation

char const* WT_File_Stats::descriptions int  index = -1  )  const
 

Returns a text description of the given opcode (or an empty string.).

Defaults to the description of the last read opcode.

Warning:
May overflow an internal array. Clients should be sure to only provide a valid opcode index that is <= WD_MAX_OPCODE_ID.

const long WT_File_Stats::opcode_count int  opcode_index  )  const [inline]
 

Returns the number of times the given opcode was found in the file.

Warning:
May overflow an internal array. Clients should be sure to only provide a valid opcode index that is <= WD_MAX_OPCODE_ID.

Definition at line 84 of file file_stats.h.

const long WT_File_Stats::opcode_total_bytes int  opcode_index  )  const [inline]
 

Returns the number of bytes occupied by the given opcode in the file.

Warning:
May overflow an internal array. Clients should be sure to only provide a valid opcode index that is <= WD_MAX_OPCODE_ID.

Definition at line 90 of file file_stats.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:41:17 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5