ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkDirectory_h 00019 #define __itkDirectory_h 00020 00021 #include "itkObject.h" 00022 #include "itksys/Directory.hxx" 00023 00024 namespace itk 00025 { 00039 class ITKCommon_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(); 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 ::itksys::Directory *m_Internal; 00076 }; // End Class: Directory 00077 } // end namespace itk 00078 00079 #endif 00080