unixfs.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2003 Martin Fuchs
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 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  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 
00019 
00020  //
00021  // Explorer clone
00022  //
00023  // unixfs.h
00024  //
00025  // Martin Fuchs, 23.07.2003
00026  //
00027 
00028 
00029 #ifdef __WINE__
00030 
00031 struct UnixEntry : public Entry
00032 {
00033     UnixEntry(Entry* parent) : Entry(parent) {}
00034 
00035 protected:
00036     UnixEntry() : Entry(ET_UNIX) {}
00037 
00038     virtual bool get_path(PTSTR path, size_t path_count) const;
00039 };
00040 
00041 struct UnixDirectory : public UnixEntry, public Directory
00042 {
00043     UnixDirectory(LPCTSTR root_path)
00044      :  UnixEntry()
00045     {
00046         _path = _tcsdup(root_path);
00047     }
00048 
00049     UnixDirectory(UnixDirectory* parent, LPCTSTR path)
00050      :  UnixEntry(parent)
00051     {
00052         _path = _tcsdup(path);
00053     }
00054 
00055     ~UnixDirectory()
00056     {
00057         free(_path);
00058         _path = NULL;
00059     }
00060 
00061     virtual void read_directory();
00062     virtual const void* get_next_path_component(const void*);
00063     virtual Entry* find_entry(const void*);
00064 };
00065 
00066 #endif

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage