00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkInformationIterator.h 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 =========================================================================*/ 00026 #ifndef __vtkInformationIterator_h 00027 #define __vtkInformationIterator_h 00028 00029 #include "vtkObject.h" 00030 00031 class vtkInformation; 00032 class vtkInformationKey; 00033 class vtkInformationIteratorInternals; 00034 00035 class VTK_COMMON_EXPORT vtkInformationIterator : public vtkObject 00036 { 00037 public: 00038 static vtkInformationIterator *New(); 00039 vtkTypeMacro(vtkInformationIterator,vtkObject); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00044 void SetInformation(vtkInformation*); 00045 vtkGetObjectMacro(Information, vtkInformation); 00047 00049 void InitTraversal() { this->GoToFirstItem(); } 00050 00052 virtual void GoToFirstItem(); 00053 00055 virtual void GoToNextItem(); 00056 00059 virtual int IsDoneWithTraversal(); 00060 00063 virtual vtkInformationKey* GetCurrentKey(); 00064 00065 protected: 00066 vtkInformationIterator(); 00067 ~vtkInformationIterator(); 00068 00069 vtkInformation* Information; 00070 vtkInformationIteratorInternals* Internal; 00071 00072 private: 00073 vtkInformationIterator(const vtkInformationIterator&); // Not implemented. 00074 void operator=(const vtkInformationIterator&); // Not implemented. 00075 }; 00076 00077 #endif