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

itkDirectory.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDirectory.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/11/16 15:35:09 $
00007   Version:   $Revision: 1.23 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkDirectory_h
00018 #define __itkDirectory_h
00019 
00020 #include "itkObject.h"
00021 #include "itkObjectFactory.h"
00022 #include <iostream>
00023 #include <string>
00024 #include <vector>
00025 
00026 namespace itk
00027 {
00039 class ITK_EXPORT Directory : public Object
00040 {
00041 public:
00043   typedef Directory           Self;
00044   typedef Object  Superclass;
00045   typedef SmartPointer<Self>  Pointer;
00046   typedef SmartPointer<const Self>  ConstPointer;
00047     
00049   static Pointer New()
00050     { Pointer n = new Self; n->UnRegister(); return n; }
00051   
00053   itkTypeMacro(Directory,Object);
00054 
00058   bool Load(const char* dir);
00059 
00061   std::vector<std::string>::size_type GetNumberOfFiles() { return m_Files.size();}
00062 
00064   const char* GetFile(unsigned int index);
00065 
00066 protected:
00067   Directory();
00068   ~Directory() ;
00069   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00070 
00071 private:
00072   Directory(const Self&); //purposely not implemented
00073   void operator=(const Self&); //purposely not implemented
00074 
00075   std::vector<std::string> m_Files; // Array of Files
00076   std::string m_Path;               // Path to Open'ed directory
00077 }; // End Class: Directory
00078 
00079 } // end namespace itk
00080   
00081 #endif

Generated at Fri May 21 01:14:39 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000