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

OffsetsManager Class Reference

#include <vtkOffsetsManagerArray.h>

List of all members.

Detailed Description

Helper class due to PIMPL excess.

This class is deisgned to work within vtkXMLWriter. It store a position in a file (unsigned long) and associate a offset in the file. This is usefull when writting TimeStep XML file when you want to forward the same offset from the AppendData section on every entry in let say <points> definition Example: <points> <DataArray type="Float32" TimeStep="0" format="appended" offset="268" /> <DataArray type="Float32" TimeStep="1" format="appended" offset="268" /> ... </points> Therefore data is only stored once in the XML file. At read time the offset value is stored to determine whenever we need to read data (ie when offset different from previously stored offset)

See also:
Do not include this file in a header file, it will break PIMPL convention

Definition at line 51 of file vtkOffsetsManagerArray.h.

Public Member Functions

 OffsetsManager ()
 ~OffsetsManager ()
void Allocate (int numTimeStep)
unsigned long & GetPosition (unsigned int t)
unsigned long & GetOffsetValue (unsigned int t)
unsigned long & GetLastMTime ()

Constructor & Destructor Documentation

OffsetsManager::OffsetsManager  )  [inline]

Definition at line 55 of file vtkOffsetsManagerArray.h.

OffsetsManager::~OffsetsManager  )  [inline]

Definition at line 59 of file vtkOffsetsManagerArray.h.

Member Function Documentation

void OffsetsManager::Allocate int  numTimeStep  )  [inline]

Definition at line 62 of file vtkOffsetsManagerArray.h.

unsigned long& OffsetsManager::GetPosition unsigned int  t  )  [inline]

Definition at line 68 of file vtkOffsetsManagerArray.h.

unsigned long& OffsetsManager::GetOffsetValue unsigned int  t  )  [inline]

Definition at line 73 of file vtkOffsetsManagerArray.h.

unsigned long& OffsetsManager::GetLastMTime  )  [inline]

Definition at line 78 of file vtkOffsetsManagerArray.h.

The documentation for this class was generated from the following file:
Generated on Tue Jan 22 00:03:17 2008 for VTK by  doxygen 1.4.3-20050530