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

itkRegularExpressionSeriesFileNames.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkRegularExpressionSeriesFileNames.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:35 $ 00007 Version: $Revision: 1.2 $ 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 __itkRegularExpressionSeriesFileNames_h 00018 #define __itkRegularExpressionSeriesFileNames_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObject.h" 00025 #include "itkObjectFactory.h" 00026 #include "itkExceptionObject.h" 00027 #include <vector> 00028 00029 namespace itk 00030 { 00031 00072 class ITK_EXPORT RegularExpressionSeriesFileNames : public Object 00073 { 00074 public: 00076 typedef RegularExpressionSeriesFileNames Self; 00077 typedef Object Superclass; 00078 typedef SmartPointer<Self> Pointer; 00079 00081 itkNewMacro(Self); 00082 00084 itkTypeMacro(RegularExpressionSeriesFileNames, Object); 00085 00086 /* -------- Define the API for RegularExpressionSeriesFileNames ---------- */ 00088 itkSetStringMacro(Directory); 00089 itkGetStringMacro(Directory); 00090 00092 itkSetStringMacro(RegularExpression); 00093 itkGetStringMacro(RegularExpression); 00094 00097 itkSetMacro(SubMatch, unsigned int); 00098 itkGetMacro(SubMatch, unsigned int); 00099 00103 itkSetMacro(NumericSort,bool); 00104 itkGetMacro(NumericSort,bool); 00105 itkBooleanMacro(NumericSort); 00106 00108 std::string GetSubMatch (unsigned int); 00109 00112 const std::vector<std::string> &GetFileNames (); 00113 00114 protected: 00115 RegularExpressionSeriesFileNames() : 00116 m_Directory("."), 00117 m_SubMatch(1), 00118 m_NumericSort(false), 00119 m_RegularExpression(".*\\.([0-9]+)") 00120 {}; 00121 ~RegularExpressionSeriesFileNames() {}; 00122 void PrintSelf(std::ostream& os, Indent indent) const; 00123 00124 private: 00125 RegularExpressionSeriesFileNames(const Self&); //purposely not implemented 00126 void operator=(const Self&); //purposely not implemented 00127 00128 std::string m_Directory; 00129 unsigned int m_SubMatch; 00130 bool m_NumericSort; 00131 std::string m_RegularExpression; 00132 00133 std::vector<std::string> m_FileNames; 00134 }; 00135 00136 } //namespace ITK 00137 00138 #endif // __itkRegularExpressionSeriesFileNames_h

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