Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkFileIteratorBase.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkFileIteratorBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:32 $ 00007 Version: $Revision: 1.4 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkFileIteratorBase_h 00018 #define __itkFileIteratorBase_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObject.h" 00025 #include "itkObjectFactory.h" 00026 00027 namespace itk 00028 { 00029 00048 class ITK_EXPORT FileIteratorBase : public Object 00049 { 00050 public: 00052 typedef FileIteratorBase Self; 00053 typedef Object Superclass; 00054 typedef SmartPointer<Self> Pointer; 00055 00057 itkTypeMacro(FileIteratorBase, Object); 00058 00063 itkSetStringMacro(SeriesFormat); 00064 itkGetStringMacro(SeriesFormat); 00065 00070 itkSetMacro(WriteMode,bool); 00071 itkGetMacro(WriteMode,bool); 00072 itkBooleanMacro(WriteMode); 00073 00076 virtual const std::string& Begin() = 0; 00077 00080 virtual const std::string& operator++() = 0; 00081 00084 virtual const std::string& operator--() = 0; 00085 00088 virtual const std::string& operator*() const 00089 {return m_CurrentFileName;} 00090 00091 protected: 00092 FileIteratorBase(); 00093 ~FileIteratorBase(); 00094 void PrintSelf(std::ostream& os, Indent indent) const; 00095 00097 bool m_WriteMode; 00098 00100 std::string m_SeriesFormat; 00101 00103 std::string m_CurrentFileName; 00104 00105 private: 00106 FileIteratorBase(const Self&); //purposely not implemented 00107 void operator=(const Self&); //purposely not implemented 00108 00109 }; 00110 00111 } //namespace ITK 00112 00113 #endif // __itkFileIteratorBase_h

Generated at Sat Mar 31 02:18:31 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000