Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VFS.h

Go to the documentation of this file.
00001 /*
00002   This code has been taken from Globulation 2 (http://glob2.ysagoon.com)
00003   
00004   Copyright (C) 2001-2005 Stephane Magnenat & Luc-Olivier de Charrière
00005   for any question or comment contact us at nct@ysagoon.com or nuage@ysagoon.com
00006 
00007   This program 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; either version 2 of the License, or
00010   (at your option) any later version.
00011 
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00015   GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License
00018   along with this program; if not, write to the Free Software
00019   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00020 */
00021 
00022 #ifndef __VFS_H
00023 #define __VFS_H
00024 
00025 #include <string>
00026 #include <vector>
00027 
00032 namespace Teem
00033 {
00036     class VFS
00037     {
00038     private:
00040         std::vector<std::string> dirList;
00041         
00042     public: 
00044         VFS(/*const std::string &applicationName*/);
00046         virtual ~VFS();
00047     
00049         void addDir(const std::string &dir);
00051         void addWriteSubdir(const std::string &subdir);
00053         std::string getFullPath(const std::string &name, const std::string &mode = "r");
00054     };
00055     
00058     extern VFS vfs;
00059 }
00060 
00061 #endif

Generated on Mon Oct 24 17:38:25 2005 for Teem by  doxygen 1.4.2