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: 2004/12/03 04:43:30 $
00007   Version:   $Revision: 1.2 $
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 
00093   unsigned int GetNumberOfGroupings();
00094 
00098   const std::vector<std::string> &GetFileNames ( unsigned int group = 0);
00099 
00100 
00101 protected:
00102   ArchetypeSeriesFileNames();
00103   ~ArchetypeSeriesFileNames() {};
00104   void PrintSelf(std::ostream& os, Indent indent) const;
00105 
00107   void Scan();
00108   
00109 private:
00110   ArchetypeSeriesFileNames(const Self&); //purposely not implemented
00111   void operator=(const Self&); //purposely not implemented
00112   
00114   std::string m_Archetype;
00115 
00116   std::vector<std::vector<std::string> > m_Groupings;
00117   std::vector<std::string> m_FileNames;   // ivar for returning by reference
00118 
00119   TimeStamp  m_ArchetypeMTime;
00120   TimeStamp  m_ScanTime;
00121   
00122 };
00123 
00124 } //namespace ITK
00125 
00126 #endif // __itkArchetypeSeriesFileNames_h

Generated at Wed May 24 22:47:09 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000