ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkArchetypeSeriesFileNames.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkArchetypeSeriesFileNames_h
19 #define itkArchetypeSeriesFileNames_h
20 #include "ITKIOImageBaseExport.h"
21 
22 
23 #include "itkObject.h"
24 #include "itkObjectFactory.h"
25 #include <vector>
26 #include <string>
27 
28 namespace itk
29 {
68 class ITKIOImageBase_EXPORT ArchetypeSeriesFileNames:public Object
69 {
70 public:
73  typedef Object Superclass;
75 
77  itkNewMacro(Self);
78 
80  itkTypeMacro(ArchetypeSeriesFileNames, Object);
81 
82  /* -------- Define the API for ArchetypeSeriesFileNames ----------- */
83 
84  // The archetypical filename from which to generate the regular
85  // expressions
86  void SetArchetype(const std::string & archetype);
87 
88  itkGetStringMacro(Archetype);
89 
90  typedef size_t VectorSizeType;
91 
93  VectorSizeType GetNumberOfGroupings();
94 
96  typedef std::vector< int > IntVectorType;
97  typedef std::vector< std::string > StringVectorType;
98 
102  const StringVectorType & GetFileNames(VectorSizeType group = 0);
103 
104 protected:
107  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
108 
110  void Scan();
111 
112 private:
113  ArchetypeSeriesFileNames(const Self &); //purposely not implemented
114  void operator=(const Self &); //purposely not implemented
115 
117  std::string m_Archetype;
118 
119  std::vector< StringVectorType > m_Groupings;
120  StringVectorType m_FileNames; // ivar for returning by
121  // reference
122 
125 };
126 } //namespace ITK
127 
128 #endif // itkArchetypeSeriesFileNames_h
Light weight base class for most itk classes.
Generate an ordered sequence of filenames.
Generate a unique, increasing time value.
Definition: itkTimeStamp.h:58
std::vector< StringVectorType > m_Groupings
Control indentation during Print() invocation.
Definition: itkIndent.h:49
std::vector< std::string > StringVectorType
Base class for most ITK classes.
Definition: itkObject.h:57