ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkNumericSeriesFileNames.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 __itkNumericSeriesFileNames_h
19 #define __itkNumericSeriesFileNames_h
20 
21 
22 #include "itkObject.h"
23 #include "itkObjectFactory.h"
24 #include "itkIntTypes.h"
25 #include "itkMacro.h"
26 #include <vector>
27 
28 namespace itk
29 {
53 class ITK_EXPORT NumericSeriesFileNames:public Object
54 {
55 public:
58  typedef Object Superclass;
60 
62  itkNewMacro(Self);
63 
65  itkTypeMacro(NumericSeriesFileNames, Object);
66 
67  /* -------- Define the API for NumericSeriesFileNames ----------- */
68 
71  itkSetMacro(StartIndex, SizeValueType);
72  itkGetConstMacro(StartIndex, SizeValueType);
74 
76  itkSetMacro(EndIndex, SizeValueType);
77  itkGetConstMacro(EndIndex, SizeValueType);
79 
82  itkSetMacro(IncrementIndex, SizeValueType);
83  itkGetConstMacro(IncrementIndex, SizeValueType);
85 
91  itkSetStringMacro(SeriesFormat);
92  itkGetStringMacro(SeriesFormat);
94 
97  const std::vector< std::string > & GetFileNames();
98 
99 protected:
102  void PrintSelf(std::ostream & os, Indent indent) const;
103 
104 private:
105  NumericSeriesFileNames(const Self &); //purposely not implemented
106  void operator=(const Self &); //purposely not implemented
107 
111 
113  std::string m_SeriesFormat;
114 
115  std::vector< std::string > m_FileNames;
116 };
117 } //namespace ITK
118 
119 #endif // __itkNumericSeriesFileNames_h
120