00001 /******************************************************************** 00002 ** Copyright (C) 2000 SOMELib Project 00003 ** 00004 ** This library is free software; you can redistribute it and/or 00005 ** modify it under the terms of the GNU Library General Public 00006 ** License as published by the Free Software Foundation; either 00007 ** version 2 of the License, or (at your option) any later version. 00008 ** 00009 ** This library is distributed in the hope that it will be useful, 00010 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 ** Library General Public License for more details. 00013 ** 00014 ** You should have received a copy of the GNU Library General Public 00015 ** License along with this library; if not, write to the 00016 ** Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 ** Boston, MA 02111-1307, USA. 00018 ** 00019 *******************************************************************/ 00020 00021 #ifndef SOME_PATHDRIVER_HEADER 00022 #define SOME_PATHDRIVER_HEADER 00023 00024 #include<string> 00025 #include<list> 00026 00027 namespace SOME 00028 { 00029 00030 class PathDriver 00031 { 00032 public: 00033 PathDriver(); 00034 virtual ~PathDriver() 00035 {} 00036 00037 //to provide information on wether this is a 00038 //file, directory, or other 00039 00040 00041 virtual void checkPath( std::string path, bool &isDir, bool &isFile ); 00042 //enumerate through a directory and populate file_list 00043 virtual void enumDirectory(std::string path, std::list<std::string> &file_list); 00044 virtual std::string getDelimit(); 00045 00046 protected: 00047 std::string delimit; 00048 }; 00049 00050 00051 } 00052 #endif