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: 2008-10-07 09:09:39 $
00007   Version:   $Revision: 1.29 $
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 __itkDirectory_h
00018 #define __itkDirectory_h
00019 
00020 #include "itkObject.h"
00021 #include <itksys/Directory.hxx>
00022 
00023 namespace itk
00024 {
00038 class ITKCommon_EXPORT Directory : public Object
00039 {
00040 public:
00042   typedef Directory                   Self;
00043   typedef Object                      Superclass;
00044   typedef SmartPointer<Self>          Pointer;
00045   typedef SmartPointer<const Self>    ConstPointer;
00046 
00048   static Pointer New()
00049     { Pointer n = new Self; n->UnRegister(); return n; }
00050 
00052   itkTypeMacro(Directory,Object);
00053 
00057   bool Load(const char* dir);
00058 
00060   std::vector<std::string>::size_type GetNumberOfFiles();
00061 
00063   const char* GetFile(unsigned int index);
00064 
00065 protected:
00066   Directory();
00067   ~Directory();
00068   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00069 
00070 private:
00071   Directory(const Self&); //purposely not implemented
00072   void operator=(const Self&); //purposely not implemented
00073 
00074   ::itksys::Directory* m_Internal;
00075 }; // End Class: Directory
00076 
00077 } // end namespace itk
00078 
00079 #endif
00080 

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