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-03-22 14:28:47 $
00007   Version:   $Revision: 1.5 $
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 namespace itk
00030 {
00069 class ITK_EXPORT ArchetypeSeriesFileNames : public Object
00070 {
00071 public:
00073   typedef ArchetypeSeriesFileNames Self;
00074   typedef Object                   Superclass;
00075   typedef SmartPointer<Self>       Pointer;
00076 
00078   itkNewMacro(Self);
00079 
00081   itkTypeMacro(ArchetypeSeriesFileNames, Object);
00082 
00083   /* -------- Define the API for ArchetypeSeriesFileNames ----------- */
00084 
00085   // The archetypical filename from which to generate the regular
00086   // expressions
00087   void SetArchetype(const std::string &archetype);
00088   itkGetStringMacro(Archetype);
00089 
00090   typedef  size_t VectorSizeType;
00091 
00093   VectorSizeType GetNumberOfGroupings();
00094 
00096   typedef std::vector < int >         IntVectorType;
00097   typedef std::vector < std::string > StringVectorType;
00098 
00102   const StringVectorType &GetFileNames ( VectorSizeType group = 0);
00103 
00104 
00105 protected:
00106   ArchetypeSeriesFileNames();
00107   ~ArchetypeSeriesFileNames() {};
00108   void PrintSelf(std::ostream& os, Indent indent) const;
00109 
00111   void Scan();
00112 
00113 private:
00114   ArchetypeSeriesFileNames(const Self&); //purposely not implemented
00115   void operator=(const Self&); //purposely not implemented
00116   
00118   std::string m_Archetype;
00119 
00120   std::vector< StringVectorType > m_Groupings;
00121   StringVectorType                m_FileNames; // ivar for returning by reference
00122 
00123   TimeStamp  m_ArchetypeMTime;
00124   TimeStamp  m_ScanTime;
00125   
00126 };
00127 
00128 } //namespace ITK
00129 
00130 #endif // __itkArchetypeSeriesFileNames_h
00131 

Generated at Thu May 28 09:19:53 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000