2 * Copyright 2003 Martin Fuchs
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 // Martin Fuchs, 23.07.2003
31 struct UnixEntry
: public Entry
33 UnixEntry(Entry
* parent
) : Entry(parent
) {}
36 UnixEntry() : Entry(ET_UNIX
) {}
38 virtual bool get_path(PTSTR path
, size_t path_count
) const;
41 struct UnixDirectory
: public UnixEntry
, public Directory
43 UnixDirectory(LPCTSTR root_path
)
46 _path
= _tcsdup(root_path
);
49 UnixDirectory(UnixDirectory
* parent
, LPCTSTR path
)
52 _path
= _tcsdup(path
);
61 virtual void read_directory();
62 virtual const void* get_next_path_component(const void*);
63 virtual Entry
* find_entry(const void*);