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 00051 void SetInformationWeak(vtkInformation*); 00052 00054 void InitTraversal() { this->GoToFirstItem(); } 00055 00057 virtual void GoToFirstItem(); 00058 00060 virtual void GoToNextItem(); 00061 00064 virtual int IsDoneWithTraversal(); 00065 00068 virtual vtkInformationKey* GetCurrentKey(); 00069 00070 protected: 00071 vtkInformationIterator(); 00072 ~vtkInformationIterator(); 00073 00074 vtkInformation* Information; 00075 vtkInformationIteratorInternals* Internal; 00076 00077 bool ReferenceIsWeak; 00078 00079 private: 00080 vtkInformationIterator(const vtkInformationIterator&); // Not implemented. 00081 void operator=(const vtkInformationIterator&); // Not implemented. 00082 }; 00083 00084 #endif