filefs.h

00001 /*
00002  * filefs.h
00003  * This file is part of dbPager Classes Library (DCL)
00004  *
00005  * Copyright (c) 2008 Dennis Prochko <wolfsoft@mail.ru>
00006  *
00007  * DCL is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation version 3.
00010  *
00011  * DCL is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with DCL; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00019  * Boston, MA  02110-1301  USA
00020  */
00021 
00022 #ifndef _FILEFS_H_
00023 #define _FILEFS_H_
00024 
00025 #include <string>
00026 #include <iterator>
00027 
00028 #include <dcl/filesystem.h>
00029 
00030 namespace dbp {
00031 
00033 
00036 class filefs: public filesystem {
00037 public:
00039         filefs();
00041         virtual ~filefs();
00042         virtual std::string get_path_delimiter() const;
00043         virtual std::string get_current_dir() const;
00044         virtual void set_current_dir(const std::string &name) const;
00045         virtual std::string get_temp_dir() const;
00046         virtual std::string get_home_dir() const;
00047         virtual std::string get_locale_dir() const;
00048         virtual std::string get_system_config_dir() const;
00049         virtual std::string get_data_dir() const;
00050 private:
00051         filesystem *pimpl;
00052         virtual bool find_first_file(const std::string &pattern,
00053           std::string &filename);
00054         virtual bool find_next_file(std::string &filename);
00055 };
00056 
00057 }
00058 
00059 #endif /*_FILEFS_H_*/
00060 

 
Support This Project
SourceForge.net Logo