ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkArchetypeSeriesFileNames_h 00019 #define __itkArchetypeSeriesFileNames_h 00020 00021 00022 #include "itkObject.h" 00023 #include "itkObjectFactory.h" 00024 #include <vector> 00025 #include <string> 00026 00027 namespace itk 00028 { 00067 class ITK_EXPORT ArchetypeSeriesFileNames:public Object 00068 { 00069 public: 00071 typedef ArchetypeSeriesFileNames Self; 00072 typedef Object Superclass; 00073 typedef SmartPointer< Self > Pointer; 00074 00076 itkNewMacro(Self); 00077 00079 itkTypeMacro(ArchetypeSeriesFileNames, Object); 00080 00081 /* -------- Define the API for ArchetypeSeriesFileNames ----------- */ 00082 00083 // The archetypical filename from which to generate the regular 00084 // expressions 00085 void SetArchetype(const std::string & archetype); 00086 00087 itkGetStringMacro(Archetype); 00088 00089 typedef size_t VectorSizeType; 00090 00092 VectorSizeType GetNumberOfGroupings(); 00093 00095 typedef std::vector< int > IntVectorType; 00096 typedef std::vector< std::string > StringVectorType; 00097 00101 const StringVectorType & GetFileNames(VectorSizeType group = 0); 00102 00103 protected: 00104 ArchetypeSeriesFileNames(); 00105 ~ArchetypeSeriesFileNames() {} 00106 void PrintSelf(std::ostream & os, Indent indent) const; 00107 00109 void Scan(); 00110 00111 private: 00112 ArchetypeSeriesFileNames(const Self &); //purposely not implemented 00113 void operator=(const Self &); //purposely not implemented 00114 00116 std::string m_Archetype; 00117 00118 std::vector< StringVectorType > m_Groupings; 00119 StringVectorType m_FileNames; // ivar for returning by 00120 // reference 00121 00122 TimeStamp m_ArchetypeMTime; 00123 TimeStamp m_ScanTime; 00124 }; 00125 } //namespace ITK 00126 00127 #endif // __itkArchetypeSeriesFileNames_h 00128