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

itkArchetypeSeriesFileNames.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkArchetypeSeriesFileNames.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/01/06 18:23:33 $
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 __itkArchetypeSeriesFileNames_h
00018 #define __itkArchetypeSeriesFileNames_h
00019 
00020 #ifdef _MSC_VER
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023 
00024 #include "itkObject.h"
00025 #include "itkObjectFactory.h"
00026 #include <vector>
00027 #include <string>
00028 
00029 
00030 
00031 namespace itk
00032 {
00071 class ITK_EXPORT ArchetypeSeriesFileNames : public Object
00072 {
00073 public:
00075   typedef ArchetypeSeriesFileNames    Self;
00076   typedef Object                  Superclass;
00077   typedef SmartPointer<Self>      Pointer;
00078 
00080   itkNewMacro(Self);
00081 
00083   itkTypeMacro(ArchetypeSeriesFileNames, Object);
00084 
00085   /* -------- Define the API for ArchetypeSeriesFileNames ----------- */
00086 
00087   // The archetypical filename from which to generate the regular
00088   // expressions
00089   void SetArchetype(const std::string &archetype);
00090   itkGetStringMacro(Archetype);
00091 
00092   typedef  size_t VectorSizeType;
00093 
00095   VectorSizeType GetNumberOfGroupings();
00096 
00098   typedef std::vector < int >         IntVectorType;
00099   typedef std::vector < std::string > StringVectorType;
00100 
00104   const StringVectorType &GetFileNames ( VectorSizeType group = 0);
00105 
00106 
00107 protected:
00108   ArchetypeSeriesFileNames();
00109   ~ArchetypeSeriesFileNames() {};
00110   void PrintSelf(std::ostream& os, Indent indent) const;
00111 
00113   void Scan();
00114 
00115 private:
00116   ArchetypeSeriesFileNames(const Self&); //purposely not implemented
00117   void operator=(const Self&); //purposely not implemented
00118   
00120   std::string m_Archetype;
00121 
00122   std::vector< StringVectorType > m_Groupings;
00123   StringVectorType m_FileNames;   // ivar for returning by reference
00124 
00125   TimeStamp  m_ArchetypeMTime;
00126   TimeStamp  m_ScanTime;
00127   
00128 };
00129 
00130 } //namespace ITK
00131 
00132 #endif // __itkArchetypeSeriesFileNames_h
00133 

Generated at Sun Mar 11 23:28:28 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000